Label
A label component serves as a descriptive tag within a user interface, providing clear and concise information about a corresponding form field or interactive element.
Examples
Default
Default Label.
Detailed Label
Add a description by passing the description
prop to the component.
You really should
Required Label
Mark as required by passing the required
prop to the component.
Helper Label
Add a helper by passing the helper
prop to the component.
You really should
Installation
Properties
In addition to default HTML properties, the Label component has the following properties:
description
string
Longer description below the Label.
helper
string
Additional helper text in parentheses to the right of the text.
required
boolean
default: false
Show a required indicator on the Label.