What problem does it solve?
This Skill standardizes form development using a custom TanStack Form integration, ensuring consistent patterns for validation, focus management, server action integration, and accessibility, reducing boilerplate and improving user experience.
Core Features & Use Cases
- Standardized Form Setup: Enforces
useAppForm with Zod validation, revalidateLogic, and withFocusManagement for consistent form behavior.
- Rich Field Components: Guides the use of pre-built field components (
TextField, SelectField, SwitchField, etc.) for consistent UI and functionality.
- Integrated Server Action Submission: Ensures forms seamlessly integrate with
useServerAction for submission, handling loading states and toast notifications automatically.
- Use Case: When creating a new user registration form, this Skill ensures it uses
useAppForm with TextField and CheckboxField components, integrates Zod for validation, handles invalid submissions by focusing the first error, and uses useServerAction for submission.
Quick Start
Create a new user registration form using useAppForm with TextField and CheckboxField components, integrating Zod for validation and useServerAction for submission.