gform-react
TypeScript icon, indicating that this package has built-in type declarations

1.11.1 • Public • Published

GForm

gform-react

npm bundle size npm bundle size npm peer dependency version npm peer dependency version NPM

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

Package Sidebar

Install

npm i gform-react

Weekly Downloads

34

Version

1.11.1

License

MIT

Unpacked Size

612 kB

Total Files

36

Last publish

Collaborators

  • talmaman