frontend-forms
CommunityShip robust forms fast with safe validations.
Authorchinomartinez
Version1.0.0
Installs0
System Documentation
What problem does it solve?
React Hook Form + Zod patterns for SmartPocket forms, enabling consistent validation, error handling, and API integration across create/edit flows with a modern, low-boilerplate pattern.
Core Features & Use Cases
- useFormErrorHandler to auto-map API errors to fields and display via FormMessage.
- activeMutation to unify create/edit flows and manage loading and reset in a single place.
- values-based syncing (no useEffect) with watch() to align edit data and reactive data updates.
- Three-layer error display: field-level, inline, and toast for user-friendly feedback.
- Real-world use: quickly build product forms with name, amount, and category validations, handling server-side errors gracefully.
Quick Start
Configure a new form using the Modern Form Pattern to validate with Zod, map API errors to fields automatically, and coordinate create/edit workflows with a single form state.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: frontend-forms Download link: https://github.com/chinomartinez/SmartPocket/archive/main.zip#frontend-forms Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.