Skip to content

Forms

Label

The name of a control; a click on it focuses the control.

Installation

Terminal
pnpm add @elsikora/keystone-ui-kit

Usage

Import
import { Label } from "@elsikora/keystone-ui-kit";
docs/label/default.example.tsx
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

PropTypeDefaultDescription
htmlForstring-The id of the control it names.

Notes

  • Inside a Field the label is drawn for you.