web-forms-tanstack-form
Installation
SKILL.md
TanStack Form Patterns
Quick Guide:
useFormtakesdefaultValues, and every field name, value type and the submit payload are inferred from that object. Fields render throughform.Fieldwith achildrenrender prop that suppliesfield.state.value,field.handleChangeandfield.handleBlur. Validation lives in thevalidatorsprop — keyed by event (onChange,onBlur,onSubmit) with anAsyncvariant of each, on the field or on the form.mode="array"unlockspushValue/removeValue,onChangeListenTore-runs a validator when another field changes, andform.Subscribenarrows which state changes re-render what.
Detailed Resources:
- examples/core.md — a form end to end: fields, typing, submission, reset
- examples/validation.md — sync, async and cross-field validators; schema objects in validators
- examples/arrays.md — dynamic field groups with
mode="array" - examples/composition.md —
createFormHook,useAppForm, listeners - reference.md — validator events, field and form state tables, API methods, framework packages