React Component Library
React components to be shared across applications
Use
CL has a dependency of styled-components
.
Install the package
$ yarn add gv-component-library
Wrap app with the ThemeProvider and usTheme
import { ThemeProvider, theme } from 'gv-component-library';
Import components
import { Button } from 'gv-component-library';
Develop
To install CL locally run
$ yarn install
To start
$ yarn styleguide
To test
$ yarn test
Test will run through all jest tests and watch for any changes on snapshots.
To publish
$ yarn publish:npm