Measured entry

shadcn-label

formunclassified

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.

Specimen
Harness screenshot of shadcn-label at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-label at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-label 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-label
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal31.1 KB (96.6 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten 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

Installation record for shadcn-label
Declared dependenciesradix-ui, 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, 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/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.