Label
Names a field. Clicking it focuses the field (Radix Label).
Preview
With an input
With a checkbox
Required
Usage
tsx
import { Label, Input } from "zostel-ui";
<Label htmlFor="name">Name</Label>
<Input id="name" placeholder="Your name" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
htmlFor | string | — | The id of the field it names. |
className | string | — | More classes, merged with the component’s own (tailwind-merge). |
htmlForType:
stringDefault: —
The id of the field it names.
classNameType:
stringDefault: —
More classes, merged with the component’s own (tailwind-merge).