Getting started with SuperForm
Typed schemas and reactive form helpers for React.
Typed validation for React forms
SuperForm is a TypeScript-first validation and form-state library for React. Describe your fields with a chainable schema, then use that same schema to validate form submissions.
The schema builder supports strings, numbers, booleans, objects, and arrays. Rules can be chained for constraints such as minimum length, email format, or numeric bounds.
Its React entry point provides useForm for input registration, validation errors, current values, and submission state. Schema types can be inferred rather than maintained as a second handwritten interface.
The package README documents separate entry points: @silentcoderhi/superform/core for schema construction and @silentcoderhi/superform/react for React hooks.