Zostel
Forms Label

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

htmlFor
Type: string
Default: —

The id of the field it names.

className
Type: string
Default: —

More classes, merged with the component’s own (tailwind-merge).