PACKAGE · FORM

@tanstack/react-form

Powerful, type-safe forms for React.

WEEKLY DOWNLOADS 6.8M
STARS 6.8K
FORKS 720
OPEN ISSUES 234
GZIP SIZE 22.1 kB
UNPACKED SIZE 566.8 kB
DEPENDENCIES 8
LAST UPDATED 8mo ago
DOWNLOAD TRENDS

@tanstack/react-form downloads · last 12 months

Download trends for @tanstack/react-form1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.04.8M9.6M14.4M19.2MNov 2025FebMayAugOct 2026
@tanstack/react-form
ABOUT @TANSTACK/REACT-FORM

TanStack React Form provides type-safe form state and interaction patterns for React applications. It addresses the coordination involved in tracking values, validation, and submission across forms and their fields, offering a form-focused API rather than requiring developers to assemble those pieces from unrelated state updates.

Its design centers on typed form data and composable control over form behavior. It is aimed at React developers who want form state and field handling to remain connected to their application’s types, including projects that need to define validation and submission behavior explicitly rather than rely on a fixed form workflow.

A typical integration starts with the package’s form hook and a form instance, then uses field-level APIs to connect inputs to values and state. This pattern gives developers places to define validation and submit handlers, while keeping the form and its individual fields within a shared form-state model; consult the package documentation for the exact APIs and options available in version 1.33.5.

The package is specifically for React, while its topics also place it in the broader TanStack forms ecosystem alongside Angular, Lit, Solid, and Vue. Its listed topics include Yup and Zod, indicating relevance to schema-validation workflows, but the supplied package details do not specify the exact adapters or configuration supported, so verify compatibility against the version’s documentation before choosing an integration.

The package is MIT-licensed and reports 1.5M weekly downloads, 6.7K GitHub stars, 698 forks, and 219 open issues, with a listed last-updated date of 2026-10-21. Its reported gzip bundle size is 22.1 kB and unpacked size is 566.8 kB; treat those as package-level figures rather than a guarantee of the size added to a particular application, which depends on how it is built and used.

Because form behavior and validation requirements vary, check that the package’s APIs match your desired field-state and submission workflow before migrating an existing form. The available package information does not establish details such as accessibility defaults, server-rendering behavior, or specific validation features, so confirm those requirements in the versioned documentation rather than assuming them.

WHEN TO USE
  • When building React forms whose field values and form state should be represented with TypeScript types; use the package’s form and field APIs to connect controls to that state.
  • When validation needs to be defined as part of a form workflow; check the version 1.33.5 documentation for the supported validation APIs and configure them at the appropriate form or field level.
  • When multiple inputs need coordinated state and submission behavior; organize them under a shared form instance and handle submission through the form’s submit pattern.
  • When you want field-level control rather than managing every input through unrelated component state; use the package’s field patterns to bind each control to its form value.
  • When evaluating a React-specific form layer within the broader TanStack ecosystem; use this package for the React integration and verify any cross-framework or validation-tool compatibility against its documentation.
WHEN NOT TO USE
  • If the form only tracks a few local values and does not need coordinated field state or form submission handling, React’s built-in state and event handlers may be sufficient.
  • If your application does not use React, this package’s React integration is not the right fit; select a form solution designed for the framework you use.
  • If you require a particular validation library integration as a hard requirement, but have not confirmed its support in version 1.33.5, verify the documentation first or implement validation through your existing application layer.
  • If you need documented accessibility or server-rendering guarantees before adoption, and cannot verify them for this version, use an approach whose guarantees are explicitly documented for your requirements.
  • If a project’s existing form architecture already supplies typed field state, validation, and submission behavior, adopting this package may duplicate those responsibilities; keep the established architecture unless a migration addresses a specific gap.
  • If the reported 22.1 kB gzip package size exceeds your budget, compare the built application output before adopting it or use a smaller, more narrowly scoped form-state approach.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 4
@tanstack/react-form vs react-hook-form ★ 44.9K · 65.7M/wk @tanstack/react-form vs @rjsf/core ★ 15.9K · 2.0M/wk @tanstack/react-form vs formik ★ 34.3K · 6.3M/wk @tanstack/react-form vs final-form ★ 3.0K · 860.4K/wk