Forms
Label
The name of a control; a click on it focuses the control.
Installation
pnpm add @elsikora/keystone-ui-kitUsage
import { Label } from "@elsikora/keystone-ui-kit";import { Input, Label } from "@elsikora/keystone-ui-kit";
export default function LabelDefaultExample() { return ( <div className="flex flex-col gap-2"> <Label htmlFor="label-example">Operator name</Label> <Input id="label-example" /> </div> );}Examples
Default
API reference
Label
| Prop | Type | Default | Description |
|---|---|---|---|
htmlFor | string | - | The id of the control it names. |
Notes
- Inside a Field the label is drawn for you.