Type-safe React form library built on react-hook-form. Provides strongly-typed form hooks, a submission-aware Form component, and a FormFieldControl component that handles validation display, error rendering, and accessibility out of the box.
| Package | Description |
|---|---|
react-type-form | Type-safe React form library wrapping react-hook-form |
# Install dependencies
pnpm install
# Run tests in watch mode
pnpm dev
# Build the library
pnpm start
# Run CI checks (build + format + test)
pnpm ci| Command | Description |
|---|---|
pnpm nx build react-type-form | Build the library |
pnpm nx test react-type-form | Run unit tests |
pnpm format | Format code with Prettier |
pnpm check-format | Check formatting |
pnpm dev | Run tests in watch mode |
pnpm start | Build in watch mode |
- Runtime: React 18+
- Forms: react-hook-form
- Build: Vite via Nx
- Testing: Vitest + React Testing Library
- Package Manager: pnpm
- Versioning: Changesets
MIT