Form Pattern
Create a form that is typed, validated, accessible, and tested.
When to Use
- •Use this skill when building any form or wizard.
Inputs
- •Fields and validation rules
- •Submission behavior
- •Error and loading states
Instructions
- •Define a typed form model.
- •Add validation (client-side and server error mapping).
- •Implement accessible labels, hints, and error messages.
- •Add tests for validation and submit behavior.
Output
- •Form component(s) with validation and tests.