gform-react
v1.11.1
Published
build generic forms with validations for react-based applications
Downloads
22
Maintainers
Readme
GForm
build generic forms with validations for react-based applications.
it doesn't matter which UI library you're using, it only cares about the form and the inputs inside.
Pros
- Lightweight, no dependencies
- Based on native form and constraint validations (can also add custom and async validations)
- Can be used with any UI library that preserves native form controls (input, button, etc. can also be adjusted to non-native controls)
- Tree shakeable
- Accessiblity semi-automatic (required inputs and invalid inputs automatically sets aria-required and aria-invalid)
- React Native support
Docs
https://gform-react.onrender.com
Demo:
https://codesandbox.io/p/sandbox/gifted-elbakyan-fs5g2c
Installation
npm:
npm install gform-react
yarn:
yarn add gform-react
NOTE:
react >=16.8.0, react-dom >=16.8.0 are peer dependecies