Label
A standalone real <label>. TextField and Checkbox render their own internally, correctly linked, reach for this one when composing a custom control that needs a label but isn't one of those.
Playground
Toggle every adjustable prop and watch the component — and the code — update live.
Unstyled
Same component — Kernel look stripped. See Platforms.
required
Usage
<Label>Email address</Label><kernel-label>Email address</kernel-label>Props
| Prop | Type | Default |
|---|---|---|
htmlFor | string | — |
required | boolean | false |