Label
Renders an accessible label associated with form controls.
Default
With Input
The
for
attribute links the label to an input by its
id
.
Clicking the label will focus the associated input.
With Input
With Textarea
Labels work with any form control.
With Textarea
With Checkbox
For checkboxes, place the label after the input and use inline layout.
With Checkbox
Required Field
Add a visual indicator for required fields.
Required
With Hint Text
Combine labels with hint text for additional context.
With Hint
Must be at least 8 characters long.
Disabled State
Style labels for disabled inputs differently.
Disabled
Form Example
A complete form example using labels.
Form