rea11y-easy-form v0.3.11
rea11y-easy-form
The (hopefully!) easiest way to build highly performant and accessible forms in React.
Built on top of react-final-form (for its subscription-based form state management), the key goals and features of rea11y-easy-form are:
- Accessibility
- Simplicity
- Extensibility
- Performance
In that order too!
With a number of built-in components developed for accessibility, and the ability to easily use your own, rea11y-easy-form should have you covered.
View the components and docs in Storybook.
Install
react-final-form and final-form are required peer dependencies for all of the core functionality.
npm install rea11y-easy-form react-final-form final-form
# or
yarn add rea11y-easy-form react-final-form final-formCertain components require additional peer dependencies as well. They are only needed if you plan to use those components though.
Development
Testing
npm run testBuilding
npm run buildStorybook
To run a live-reload Storybook server on your local machine:
npm run storybookGenerating New Components
npm run generate YourComponentNameThis will generate:
/src
/YourComponentName
YourComponentName.tsx
YourComponentName.stories.tsx
YourComponentName.test.tsx
YourComponentName.types.tsInstalling Component Library Locally
Let's say you have another project (test-app) on your machine that you want to try installing the component library into without having to first publish the component library. In the test-app directory, you can run:
npm i --save ../rea11y-easy-formwhich will install the local component library as a dependency in test-app. It'll then appear as a dependency in package.json like:
...
"dependencies": {
...
"rea11y-easy-form": "file:../rea11y-easy-form",
...
},
...