Label
Accessible label component for form elements.
Installation
npx popcn add labelBasic Usage
With Input
With Checkbox
Checkbox Label
With Required Indicator
Required Field
Disabled State
Disabled Field
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| htmlFor | string | - | The id of the form element the label is associated with |
| className | string | - | Additional CSS classes |