Label
Installation
Usage
Match for to the input id. Set required on the input when showing a required indicator. Apply disabled styling to the label explicitly when it precedes the control.
Examples
With required indicator
Disabled field
API reference
Label
Labels a form control.
| Prop | Type | Default |
|---|---|---|
class | (string & (ClassValue | null)) | undefined | — |
children | Snippet<[]> | undefined | — |
pnpm dlx @mielui/svelte add label