| What it is | Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, and Lit | Performant, flexible and extensible forms with easy-to-use validation |
| 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
| - 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
|