Label
Accessible label for form controls.
Installation
Usage
Examples
Required mark
Flag required fields with an asterisk.
Disabled group
Labels dim automatically inside a disabled group or next to a disabled peer.
With helper text
Add a hint line under the field.
API reference
Label
| Prop | Type | Default |
|---|---|---|
htmlForId of the control it labels. Clicking the label focuses the control. | string | - |
childrenLabel text. Mark required fields with an asterisk span. | ReactNode | - |
classNameAdditional classes merged with the default label styles. | string | - |