FormLabel
<FormLabel /> renders a label for a form field, supporting custom HTML elements and styling.
Props
| Name | Type | Description |
|---|---|---|
| children | ReactNode | The label text or content. |
| component | string | The HTML element to render (default: 'label'). |
| className | string | Additional CSS classes. |
Example
<FormLabel component="label" className="font-bold">
Email Address
</FormLabel>