Label
v0.10.0Accessible 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.
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.