Getting started
Introduction
Haring is a component library based on Mantine that helps you build frontend quickly.
What you'll need
Also check the getting started page of Mantine.
Installation
@smile/haring-react
Install @smile/haring-react
on your React based project with:
npm i @smile/haring-react @mantine/core @mantine/hooks @phosphor-icons/react
Then wrap your application with the Provider.
And import the styles:
import '@mantine/core/styles.css';
import '@smile/haring-react-shared/style.css';
import '@smile/haring-react/style.css';
@smile/haring-react-dates
If you need date related components you can install @smile/haring-react-dates
.
You must install @smile/haring-react
first and then add @smile/haring-react-dates
with:
npm i @smile/haring-react-dates @mantine/dates
And import the styles:
import '@mantine/dates/styles.css';
import '@smile/haring-react-dates/style.css';
@smile/haring-react-dropzone
If you need dropzone related components you can install @smile/haring-react-dropzone
.
You must install @smile/haring-react
first and then add @smile/haring-react-dropzone
with:
npm i @smile/haring-react-dropzone @mantine/dropzone
And import the styles:
import '@mantine/dropzone/styles.css';
import '@smile/haring-react-dropzone/style.css';
@smile/haring-react-table
If you need table related components you can install @smile/haring-react-table
.
You must install @smile/haring-react
first and then add @smile/haring-react-table
with:
npm i @smile/haring-react-table @mantine/dates dayjs mantine-react-table@beta @tabler/icons-react
And import the styles:
import '@mantine/dates/styles.css';
import 'mantine-react-table/styles.css';
import '@smile/haring-react-table/style.css';