Skip to Content
ComponentsLabel

Label

Renders an accessible label associated with a form control.

import { Label } from "@/components/ui/label"
<Label htmlFor="email">Email address</Label>

Examples

Default

<Label htmlFor="email">Email address</Label> <Input id="email" type="email" placeholder="you@example.com" />

Compact

<Label htmlFor="email" size="compact">Email address</Label> <Input id="email" type="email" placeholder="you@example.com" />
Last updated on