This module contains reusable react components from vets-website housed in its design system repo.
Quick start
npm install @department-of-veterans-affairs/formation-react
import COMPONENTNAME from '@department-of-veterans-affairs/formation-react/COMPONENTNAME'
See design
system
or
Storybook.
Running Storybook locally
From the project root, run the following commands:
yarn install
cd packages/formation-react
yarn install
- It's a Lerna thing. For some reason, it doesn't work without both
installs. ¯_(ツ)_/¯
yarn storybook
Included components:
- AdditionalInfo.js
- AlertBox.js
- Breadcrumbs.js
- Checkbox.js
- Date.js
- FileInput.js
- MonthYear.js
- NumberInput.js
- RadioButtons.js
- Select.js
- TextArea.js
- TextInput.js
- ExpandingGroup.js
- IconBase.js
- IconHelp.js
- IconSearch.js
- IconUser.js
- LoadingIndicator.js
- Modal.js
- OMBInfo.js
- Pagination.js
- PrivacyAgreement.js
- ProgressBar.js
- ProgressButton.js
- SearchMenu.js
- SegmentedProgressBar.js
- SystemDownView.js
- Table.js
- Telephone.js
- Tooltip.js