Skip to content
Design System
GitHub

Label

v0.10.0

Accessible label for any control.

Label with controls

Install
npx shadcn add @syncrobotic/label

Also installs: radix-ui, @syncrobotic/cn

Overview

The visible name of a control, wired to it so clicking the label focuses the control and screen readers announce it.

When to use

  • Beside a checkbox, radio or switch to make the whole row tappable.
  • Any control not wrapped in a Field.

Use something else

  • A label with a hint and an error: Field, which includes it.

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

Label required

Label optional

Label with info

Label inline

Label disabled

Usage rules

  • Every field has one, visible, above it. A placeholder is not a label.
  • Click the label to focus the field: pair them with htmlFor or wrap the control.

Changelog

  • 0.10.02026-11-18A label next to a disabled control turns muted, not faded.
  • 0.5.02026-11-17First versioned release. Earlier history is in CHANGELOG.md.

How to upgrade