tanstack-form

Manage type-safe form state with validation across multiple JS frameworks.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/bartolomeomueller/hr --skill tanstack-form-bartolomeomueller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-form
Source: https://github.com/bartolomeomueller/hr/tree/main/.agents/skills/tanstack-form
Command: npx skills add https://github.com/bartolomeomueller/hr --skill tanstack-form-bartolomeomueller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TanStack Form provides a headless, type-safe approach to managing form state in TS/JS applications, reducing boilerplate and preventing runtime errors through strong typings and robust validation.

Core Features & Use Cases

  • Field-level and form-level validation with sync/async support, including dependent fields and array fields for complex forms.
  • Schema adapter integrations (Zod, Valibot) for easy, scalable validation and type inference across React, Vue, Angular, Solid, and Svelte.
  • Fine-grained reactivity and ergonomic APIs (useForm, form.Field, form.Subscribe) to minimize re-renders and maximize developer productivity.

Quick Start

Create a simple form using useForm with default values and a submit handler.

Frequently Asked Questions about tanstack-form

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage complex form state in TypeScript without runtime errors?

Type-safe form state management automates boilerplate reduction and prevents runtime errors using strong typings, robust validation, and fine-grained reactivity across TS/JS applications.

Can I use TanStack Form with Vue, Angular, Solid, or Svelte?

Yes, this headless form state management solution provides adapter integrations and ergonomic APIs for React, Vue, Angular, Solid, and Svelte to maximize cross-framework developer productivity.

How do I add async validation to dependent fields in a React form?

Implement field-level and form-level validation with sync/async support, including dependent fields and array fields, using schema adapters like Zod or Valibot for scalable type inference.

What is the best way to prevent unnecessary re-renders when updating array fields?

Use fine-grained reactivity with ergonomic APIs like useForm, form.Field, and form.Subscribe to minimize re-renders while managing complex array fields and validation timing.

Do I need Zod or Valibot to build type-safe forms?

No, schema adapters like Zod and Valibot are optional integrations for scalable validation and type inference, but the core type-safe form state management functions independently across frameworks.