Sajari UI

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.

NameTypeDefaultDescription
htmlForstringReference to an input elements id that the label is labelling.
visuallyHiddenbooleanIf true, the label will be hidden for visual users but visible to screen readers.