@pga/pga-component-library
v1.5.5
Published
React Component Library
Downloads
110
Keywords
Readme
pga-component-library
React Component Library for internal component sharing.
How to use
- View available components at PGA Labs
- Make sure you read
Notes
tab on the bottom pane for specific component instructions
- Make sure you read
- run
npm install --save @pga/pga-component-library
in project directory - import components into your project, for example:
import { Header } from '@pga/pga-component-library'
How To Contribute
- Understand the structure of the repo.
- This is really 2 repo's in one. The component-library, which utilizes NWB and the Storybook
- When making a reusable component, please review the Storybook Documentation and NWB.
- Create component and be sure to:
- Add it to Storybook stories under /stories/components/
<your-story>
withpropTypes
and good instructions. - export it at
src/index.js
- Make sure it's well tested in
src/__tests__
- Add it to Storybook stories under /stories/components/
- Make a PR! CircleCI should automatically deploy to NPM and publish new changes to our component library website on merge with master.
- IMPORTANT Before making a PR: run
npm run bump-version
to change the version number in package.json
- IMPORTANT Before making a PR: run
Happy hacking!