Measured entry

shadcn-form

formunclassified

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.

Specimen
Harness screenshot of shadcn-form at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-form at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-form at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for shadcn-form
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal43.9 KB (109.4 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten 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

Installation record for shadcn-form
Declared dependenciesradix-ui, @hookform/resolvers, zod, react-hook-form, clsx, tailwind-merge
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno 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/ui
License
MIT
Record published
2026-08-16

Alternatives

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.