Forms
Label
A styled label/legend with an optional description and required asterisk, rendered as whichever tag fits the context — used internally by `FormField`, `Checkbox`, `Radio`, `Switch`, `CheckboxGroup`, and `RadioGroup`, but usable on its own for a custom field layout.
<UiLabel />Options
One block per prop — what it does, and what it looks like set.
Tag
tag is label by default. Switch it when the surrounding markup needs something else — a legend inside a fieldset, or a div where a real label would steal a click from the control beneath it.
Description
description is secondary text below the label, for the sentence that would clutter the label itself.
Required
required adds a trailing asterisk. Marking the field is all it does — the validation lives on the control.
Label color
labelColor sets the label's text token — base by default. Checkbox and Radio cards drop an unchecked option's label to toned.
Description color
descriptionColor sets the description's text token — muted by default. Checkbox and Radio cards lift the checked option's description to toned.
Examples
The component in real use: compositions that answer "how do I build X with this", rather than one prop at a time.
Default slot
The label text itself.
This is what every other form component renders internally
FormField, Checkbox, Radio, Switch, CheckboxGroup, and RadioGroup all forward their own label/legend, description, and required props straight to this component (with the tag that fits their own markup) — reach for Label directly only when you need a custom layout none of them support.
API Reference
Generated from the component's source — props, slots and emits as the component actually declares them.
Props
"label" | "legend" | "div" | "span"'label'"base" | "toned" | "muted" | "dimmed"'base'"base" | "toned" | "muted" | "dimmed"'muted'Slots
defaultTypes
type TextColor = "base" | "toned" | "muted" | "dimmed";