- Atoms:
- Molecules:
- Organisms:
- ActionBar
- DataTable:
- Filter
- Form:
- Form component
- useForm hook
- useFormLegacy hook
- NavBar
- SideBar
- Templates:
- Run the command:
npm install ghost-design-system
- Load the required icon set and initialize the ThemeProvider, for example in your
index.tsx
:
import { loadIcons, ThemeProvider } from 'ghost-design-system';
import '~ghost-design-system/dist/ghost-design-system.css';
loadIcons();
const App = () => {
return (
<ThemeProvider>
<RestOfYourApp />
</ThemeProvider>
);
};
- You should be ready to use any of the components of the library.
This react components library uses the following:
- @fortawesome
- @szhsin/react-menu
- classnames
- date-fns
- lodash
- numeral
- react-collapsed
- react-datepicker
- react-hot-toast
- react-infinite-scroller
- react-intersection-observer
- react-number-format
- react-query
- react-select
- react-textarea-autosize
- suneditor
- tippyjs
- yup
Peer dependencies:
Dev dependencies: