Measured entry
shadcn-form
A copy-in React form composition layer that connects React Hook Form state to labels, controls, descriptions, and validation messages with linked accessibility attributes. It ships as a client-side TSX registry module and relies on React Hook Form, Radix Slot, the shadcn Label component, the cn utility, and the registry's validation dependencies.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 43.9 KB (109.4 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A dependable field-structure helper for React Hook Form projects. It built and mounted cleanly, stayed usable across the tested layouts, and exposed no automated accessibility findings. Its value is coordination and accessible wiring, not form generation or validation design.
Use it if
- Your forms already use React Hook Form and need consistent field markup.
- You want labels, help text, errors, and controls wired together through accessible attributes.
- Your team prefers editable source components over a sealed form package.
Skip it if
- Your application uses a different form-state library and you do not want an adapter layer.
- You need a complete form builder with schemas, submission flows, and generated fields included.
- You want to avoid the Radix, shadcn utility, and Tailwind styling conventions this module assumes.
Install
| Declared dependencies | radix-ui, @hookform/resolvers, zod, react-hook-form, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
In a non-shadcn project, install React Hook Form, Radix UI, Zod, the Hook Form resolvers, clsx, and tailwind-merge. Add or replace the shadcn Label and cn utility imports, configure the path alias, and provide equivalent Tailwind semantic color classes.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/shadcn-ui/uiAlternatives
Other published entries for the form pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- hextaui-kbdminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 29.8KB
- Bare
- pass
- Prov
- NO
- shadcn-labelunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 31.1KB
- Bare
- pass
- Prov
- NO
- neobrutalism-labelbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 31.5KB
- Bare
- pass
- Prov
- NO
- neobrutalism-nlabelbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 31.5KB
- Bare
- pass
- Prov
- NO
- neobrutalism-formbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 44.4KB
- Bare
- pass
- Prov
- NO
- reui-kanbanminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 49.4KB
- Bare
- pass
- Prov
- NO