Skip to content
cogs
Menu

Skill

shadcn-react-hook-form-forms

Wire shadcn’s Form primitives to React Hook Form for one object, with a Kubb-generated zod schema.

The single-object case: one object, one useForm, one zodResolver. The Skill explains what shadcn’s thin Form wrapper does, converts a raw input and useState form to it, and shows server-side errors through form.setError.

It also says when plain React Hook Form is enough and when @cogs/react-hook-form earns its place. For tables, shadcn-data-table-rhf takes over.

This Skill on the docs site →