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
-

Id of the element this label is describing

children
React.Node
-

Example

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