# form-pattern > Build a typed form with validation, errors, and tests. - Author: Adam Winick - Repository: sinelanguage/cursor-config-web - Version: 20260201223507 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/sinelanguage/cursor-config-web - Web: https://mule.run/skillshub/@@sinelanguage/cursor-config-web~form-pattern:20260201223507 --- --- name: form-pattern description: Build a typed form with validation, errors, and tests. disable-model-invocation: true --- # 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 1. Define a typed form model. 2. Add validation (client-side and server error mapping). 3. Implement accessible labels, hints, and error messages. 4. Add tests for validation and submit behavior. ## Output - Form component(s) with validation and tests.