@local-civics/react-hub
v1.0.0-alpha.0
Published
React component library for Local design components
Downloads
28
Readme
design-components
React component library for Local design components
Install
Components are written in React, and its stories are written in Component Story Format. It requires Storybook version 6 and up.
Add design-components to your project.
npm install --save @local-civics/design-components
Usage
Import components you want into your UI
import { Button } from '@local-civics/design-components';
and use them like so
const myBtn = () => <Button>Do something</Button>;
Development
Clone the design-components GitHub project then start Storybook.
npm install && npm run storybook
Publishing
Before publishing you should build the Storybook project.
NODE_ENV=production npm run build-storybook
or if want to live updates,
NODE_ENV=production npm run storybook