Link the label to its control with htmlFor and the control id, or put the control inside it. Inside a Field, use FieldLabel.
The sample also uses Switch. One command adds them with this item:
weekly-digest-switch.tsx
Label
<label>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""sm" | "default" | default: the label look of the form components (14/20, weight 500, foreground). sm: the meta look (12/16, weight 400, muted-foreground) for a small option next to a Checkbox or Switch. |
| ...props | <label> attributes | — | Every other attribute goes to the <label>, with a ref. |





