Use the Label component to connect a label with a form component in an accessible way.

Props

Component props
Name
Type
Default
htmlFor
Required
string
-

Unique id of the element this label is describing.

children
React.Node
-

The content of the label, typically Text or similar.

Example

Whenever you are using a SelectList, Switch, TextField or TextArea component, you should use a Label.