Measured entry
shadcn-label
A client-side React wrapper around the Radix UI Label root. It ships as source for your component tree, using Tailwind utility classes and a local cn helper backed by clsx and tailwind-merge. It preserves the primitive's label props while adding disabled-state styling.



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 | 31.1 KB (96.6 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A dependable fit for an existing shadcn form stack: it builds and mounts cleanly, works without a provider, and showed no accessibility findings. For a standalone label, its dependency cost and client boundary make plain markup the leaner choice.
Use it if
- You already use shadcn conventions and want labels styled consistently with peer and group disabled states.
- You need a small typed wrapper that keeps Radix Label behavior and accepts local class overrides.
- You want a source-owned component that can be adjusted directly instead of a fixed package API.
Skip it if
- A native label element already covers your needs and the extra dependency cost is not justified.
- Your project does not use Tailwind utilities or a cn helper and you do not want to add that styling infrastructure.
- You require a server-only component and do not want this file's client boundary.
Install
| Declared dependencies | radix-ui, 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, add radix-ui, clsx, and tailwind-merge, provide a cn utility, configure Tailwind to include the component source, and replace the alias import if your project does not map it.
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
- 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
- reui-kanbanminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 49.4KB
- Bare
- pass
- Prov
- NO