| What it is | Build forms in React, without the tears | Performant, flexible and extensible forms with easy-to-use validation | Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, and Lit | A React component that builds web forms from a JSON Schema. |
| Features | - form state management for React
- validation and error messages
- form submission handling
- React Native support
| - useForm with register for uncontrolled inputs and few re-renders
- built-in rules: required, min, max, minLength, maxLength, pattern, validate
- schema validation through @hookform/resolvers: Zod, Yup, Valibot, ArkType, Joi, Superstruct, TypeBox, Ajv, Effect, VineJS, Standard Schema and more
- resolvers infer the form's input and output types from the schema
- Controller and useController for controlled UI components
- useFieldArray: append, prepend, insert, remove, swap, move, update and replace rows
- useWatch, useFormState and useFormContext / FormProvider to isolate re-renders
- useLens for type-safe reusable field components
- All 13 features
| - adapters for React, Vue, Angular, Solid, Svelte and Lit over a framework-agnostic core
- fully typed field names and values
- field-level and form-level validation on change, blur, submit and more
- async validators with debouncing (asyncDebounceMs, onChangeAsyncDebounceMs)
- native support for Standard Schema libraries: Zod, Valibot, ArkType, Effect Schema
- array fields (mode="array", pushValue and other helpers) and nested subfields
- Subscribe component and selectors to re-render on slices of form state
- server validation from the form's onSubmitAsync, mapped to fields
- All 10 features
| - forms generated from JSON Schema
- uiSchema for layout and widget customisation
- pluggable validators: AJV 8, ata, Cloudflare Workers
- themes for Ant Design, Chakra UI, daisyUI, Fluent UI, Mantine, Material UI, React-Bootstrap and shadcn/ui
- live playground
- TypeScript types
|