Foundation
Label
Caption / eyebrow for form fields. Pair with Input, Textarea, Select, or any input-like primitive.
Examples
Tones
<Label tone="eyebrow">Eyebrow</Label>
<Label tone="strong">Strong</Label>Required
<Label tone="strong" required>Required</Label>Props
| Prop | Type | Default | Description |
|---|---|---|---|
tone | 'eyebrow' | 'strong' | 'eyebrow' | Eyebrow is uppercase tracked; strong is regular case. |
required | boolean | false | Adds a small accent dot indicating required state. |
for | string | — | Standard <label for> linkage to a form control id. |
...rest | HTMLLabelAttributes | — | Spread onto the underlying <label>. |
Install
CLI
npx @a3tai/mittsu add label