@goodrequest/component-library
v0.2.58
Published
GoodRequest Component Library
Downloads
57
Readme
GoodRequest Component Library
How to use GoodRequest Component Library
To install GoodRequest Component Library run:
npm install @goodrequest/component-library
Do not forget to use <ThemeProvider>
wrapper component. It provides a styling and theme to all imported components (Buttons, Inputs...).
import { ThemeProvider, Button } from '@goodrequest/component-library'
<ThemeProvider locale='en'>
<Button>Hello World!</Button>
</ThemeProvider>
Available Scripts
In the project directory, you can run:
npm run storybook
Runs the app in the development mode.
Open http://localhost:6006 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run build
Builds the app with rollup.js for npm package.
npm run build-storybook
Builds the app for production and deploy to Chromatic.
npm run generate-tokens
Builds styled-components theme from figma tokens.