Labels
The Checkbox enables you to add label next to the input, either before or after it.
Setting Up the Label
To set the label, use the label
property, which accept string
. To set position of the label, use the labelPlacement
property, which accept before
and after
values.
Custom labels
To create a custom labels, set id
prop of the Checkbox and provide custom markup for the label, including the for
attribute for it.