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.
Usage
import { Label } from "@kernelui/react";
<Label htmlFor="color" required>Favorite color</Label>
<input id="color" name="color" />Props
| Prop | Type | Default |
|---|---|---|
htmlFor | string | — |
required | boolean | false |