Label
Renders an accessible label element associated with a form control. Built on Radix UI Label.
$cookest-ui add label
Basic
Associate a Label with any input using the htmlFor prop.
Form Fields
Labels consistently applied across a recipe creation form.
Disabled State
When the input is disabled, the label visually dims.
| Prop | Type | Default | Description |
|---|---|---|---|
htmlFor | string | — | The id of the form element this label is associated with. |
className | string | — | Custom styles to apply to the label. |
children | ReactNode | — | The label text content. |