Label
A styled wrapper around the native HTML label element with consistent typography and disabled-state handling.
Default
Disabled
Error State
That username is already taken.
Looks good!
Form Layout
Stacked
This is the name others will see.
Inline
Required
Fields marked with * are required.
With Checkbox
Email preferences
With Icon
Installation
npx shadcn@latest add @byronwade/labelProps
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | Additional CSS classes to merge with the default label styles. |
| htmlFor | string | — | Associates the label with a form control by its id. |
| children | React.ReactNode | — | The label text or content. |