Label
Labels are elements used primarily for labelling form inputs. This component is styled to resemble text and semantically renders a label element.
Import
Usage
Editable Example
Props
The Label component composes the Box component.
Name | Type | Default | Description |
---|---|---|---|
htmlFor | string | Reference to an input elements id that the label is labelling. | |
visuallyHidden | boolean | If true , the label will be hidden for visual users but visible to screen readers. |