Forms
Label
The accessible name for a control. Every input needs one, wired by a matching id — a placeholder is not a label.
Purpose
Label connects visible text to a control through htmlFor, which is what lets a screen reader
announce the control and what makes clicking the text focus it. Field
wraps this up for you along with hint and error text.
Example
Structure
| Property | Value |
|---|---|
| Typography | 14px / Inter 600 (text-sm font-semibold) |
| Colour | --secondary-foreground |
| Disabled control | 70% opacity and not-allowed cursor when the paired control is disabled |
Best practices
Do
- Always set
htmlForto the control'sid. - Keep labels short and in sentence case.
Don't
- Rely on a placeholder as the label — it disappears the moment someone types.
- Hide the label visually unless the control is unambiguous on its own.
Accessibility & keyboard
htmlFor→ the control'sidgives the control its accessible name — what a screen reader announces when the control receives focus.- Clicking the label focuses text controls and toggles checkboxes and radios, so the whole label is a hit target, not just the box.
- Keyboard: none of its own — focus goes to the control the label names.
Props
Label is a styled Radix <label> with no props of its own — it accepts every native <label>
attribute plus className. See the Storybook prop
table for the generated API, and Field for the wrapper
that composes label, hint and error for you.