
TanStack Form
Headless, type-safe form state management built for building complex, high-performance forms without prescribing UI.Designed around a core engine with a small, tree-shakeable footprint and a lightweight React adapter, it focuses on predictable state, minimal re-renders, and ergonomic APIs.Validation is schema-agnostic and supports both sync and async flows, working seamlessly with Zod, Yup, Valibot, or custom validators. It handles cross-field rules, form-level validation, and field-level validators with fine-grained subscriptions.Features include nested fields, field arrays, controlled and uncontrolled inputs, and powerful helpers for appending, inserting, removing, and reordering. Strong TypeScript support ensures end-to-end type safety and inference for form values, errors, and metadata.Integrates with any UI component library, supports SSR-friendly patterns, and emphasizes DX through clear error messages and composable primitives.
Features
- Headless form state management
- Fine-grained subscriptions to minimize re-renders
- Schema-agnostic validation (Zod, Yup, Valibot, custom)
- Sync and async validation support
- Cross-field and form-level validators
- Nested fields and deep form structures
- Field arrays with append/insert/remove/reorder helpers
- TypeScript-first with strong type inference
- Works with controlled and uncontrolled inputs
- Composable field, form, and array APIs
- Reset, submit, and lifecycle hooks
- Integrates with any UI component library
- Small, tree-shakeable core
- React adapter for seamless usage
Links
Stats
GitHub Stars5.7K
NPM Downloads316.9K/week
Details
Latest Version1.19.2
Created at11/29/2016
Updated at8/17/2025
LicenseMIT License
Related Items

TanStack Router
A modern and scalable routing library designed specifically for React, specializing in type safety and efficient data management.

Jotai
A powerful yet lightweight state management solution that adopts an atomic approach for managing state in React applications.

Legend State
This powerful library streamlines state management in your applications, making complex data handling a breeze.

MobX
This state management solution enables seamless integration of dynamic data in your applications, adapting to changes effortlessly.

zustand
A modern solution for managing application state in React apps with a focus on simplicity and performance.

MobX-State-Tree
A full-featured library that simplifies state management by providing a structured approach to mutable state handling.