Label
The name of a control, on Radix Label: htmlFor points it at the control, so a click on it reaches the control.
Usage
Examples
Sizes
size sets its text: sm 12px, base 14px (the default) or lg 16px.
With icon
An Icon goes inside the Label as a child, before its text.
Required
required adds a mark after the text, hidden from screen readers, which hear required on the input instead, beside a label as it is by default.
API Reference
Label
LabelProps · components/Label/Label.types.tsIt also takes the props of Radix Label.Root.