Labels
The visible name of a field, including whether it is required.
Variants and states
| Property | Options | Notes |
|---|---|---|
| label | visible name | Above the control. Says what the value is. |
| required | true / false | The asterisk is decorative. The control can be aria-required. |
| hint | optional | Format or where the value shows up. |
| error | optional | Replaces the hint while the value is invalid. |
Accessibility
- htmlFor matches the control id.
- The required asterisk is aria-hidden; the control can use aria-required.