Forms
Form
Orchestrates form state, validation, focus management, and async submission.
idle
Usage
Examples
Create your profile
Recommendations
| Guidance | Practice |
|---|---|
| Do | Show field errors near their controls. Preserve values after failed submission and provide a clear retry action. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Form coordinates client validation and submission. The server must validate submitted data and authorize mutations. |
| Scope | The focused example validates local form state. It does not persist data. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Creates a TanStack React Form instance; the application owns its schema and submission. |
| | — | Focuses the first enabled control marked aria-invalid=true. |