Label
A label is a piece of text that describes the purpose of a form element.
Installation
Usage
The Label
component is used to associate a label with a form element. It is used to describe the purpose of the form element.
Props
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | null | The children of the Label component. |
className | string | "" | Additional class names to apply. |
htmlFor | string | "" | The ID of the associated element. |
...props | React.LabelHTMLAttributes<HTMLLabelElement> | null | Additional HTML attributes for the label element. |