Label
Provides a descriptive text or title for form elements, helping users understand the purpose of each input field.
Installation
Usage
API
Input Props
For Label Component
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | Text or elements displayed inside the label. | - |
| htmlFor | string | Associates the label with a form control by its id for accessibility. | - |
| className | string | Additional CSS classes to customize the label styling. | - |
Credits
This component is inspired by Rehman Kalawant Design Shared On Github.