Description
formsy-react is a library for building and validating forms in React. You write your own input components, and the library wires them into a form, applies validation rules to them, and reports their state back. Validation rules are added with a simple syntax, and the form exposes handlers for different states, such as submit and valid. External errors, for example a message returned by a server, can be passed back to the form to mark a field invalid. Inputs can be added to or removed from a form while it is on screen, and they register and unregister themselves as they appear and disappear. The project aims for a balance between flexibility and reuse, so you are not locked into one set of input components. It is installed with yarn alongside react and react-dom and works with bundlers such as webpack and browserify.…
Highlights
- Build any input component and attach validation
- Simple syntax for validation rules
- Handlers for submit and valid states
- Pass server errors back to the form
- Add or remove inputs while the form is open
Ratings & Reviews
No ratings yet
Be the first to rate formsy-react.
People also visit
Form Builder
A dynamic form-building tool that allows users to create, customize, and…
formsy-react FAQ
What is formsy-react?
A React library for building form inputs and validating them, with your own input components wired into the form.
How do I install it?
Run yarn add formsy-react react react-dom in your project, then use it with your bundler.
Does it work with Bootstrap or Semantic UI?
Community packages provide Bootstrap components and Semantic UI React components for Formsy forms. They are listed in the README.
What changed in version 2?
The 2.0 release renamed several helpers, such as getErrorMessage to errorMessage and getValue to value. The upgrade guide lists the changes.
Where are the docs?
The README has a quick start, an API reference and a page for the 1.x API.
What are the best formsy-react alternatives?
Popular alternatives to formsy-react include rc-field-form, redux-form-validators and react-number-format. See all formsy-react alternatives














