shadcn-errors-form-state
OfficialFix silent shadcn Form validation failures.
System Documentation
What problem does it solve?
This Skill helps you diagnose and resolve shadcn Form bugs where react-hook-form submits empty or missing values, Radix-based inputs (Select/Checkbox/RadioGroup/Switch) fail to update form state, FormMessage shows nothing, or async validation behaves incorrectly without firing expected handlers.
Core Features & Use Cases
- Deterministic root-cause checklist: pinpoints six common failure modes, including wrong
registervsControllerwiring for Radix controls,watch-based re-render traps, incomplete/undefineddefaultValues,FormFieldoutside the<Form>provider, zod schema path mismatches, and missinghandleSubmit(onInvalid)usage. - Precise wiring rules for shadcn + react-hook-form: enforces the correct event/prop mapping matrix (e.g.,
onValueChange/onCheckedChange) and the required context placement soFormMessagecan read the field error. - Production debugging flow: guides you through a quick decision tree to determine whether values are not entering form state, validation is not running, errors are landing under a mismatched key, or invalid submissions are being swallowed.
Quick Start
Diagnose why your shadcn Form submits with missing or never-updated values by identifying whether each failing field is wired via FormField/Controller (not register), the zod schema paths exactly match the FormField name, and handleSubmit includes an onInvalid handler.
Dependency Matrix
Required Modules
None requiredComponents
💻 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: shadcn-errors-form-state Download link: https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package/archive/main.zip#shadcn-errors-form-state 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.