Components · Form & Input
An accessible form label that optionally shows a required asterisk and links to an input via htmlFor.
import { Label } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| htmlFor | string | — | — | Associates the label with a form control by its id. |
| required | boolean | — | — | Renders a required indicator (asterisk) after the label text. |
| disabled | boolean | — | — | Applies disabled styling to the label. |
| size | 'sm' | 'md' | 'md' | — | Controls label font size. |