Measured entry
shadcn-field
A copy-in React and Tailwind set of composable form-layout primitives for fieldsets, labels, descriptions, errors, content, groups, and separators. It uses class-variance-authority, a shadcn-style class merge helper, and the registry's Label and Separator components, which bring the declared Radix and class-merging 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 | flagged at 375 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 33.4 KB (98.9 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 1.11s error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-f43671b27698/src/cut/components/ui/field.tsx".
Verdict
A solid source-owned foundation for structured forms, with clean mounting and no reported accessibility violations. The narrow-screen overflow comes from the demo's fixed-width fieldset, so adopters should replace that constraint rather than reject the primitives.
Use it if
- You need consistent label, help text, error, and grouping structure across varied form controls.
- Your Tailwind setup supports the component's state, relational, and container-query utility classes.
- You want source-owned primitives that can be adapted alongside an existing shadcn-style design system.
Skip it if
- You want a complete form-state, validation, or submission solution rather than layout primitives.
- Your styling stack is not Tailwind and translating the dense utility selectors would cost more than a local wrapper.
- You cannot accommodate the Label, Separator, variant, and class-merge dependencies.
- You need the supplied demo to fit narrow screens unchanged, since its fixed-width fieldset can overflow there.
Install
| Declared dependencies | radix-ui, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add Tailwind with support for the utilities used here, class-variance-authority, Radix-backed Label and Separator equivalents, plus clsx and tailwind-merge for the class helper. Repoint the alias imports and define the referenced theme tokens.
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
- shadcn-formunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 43.9KB
- Bare
- pass
- Prov
- NO
- neobrutalism-formbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 44.4KB
- Bare
- pass
- Prov
- NO