Label
Renders an accessible label associated with a form control.
Usage
import { Label } from "@/components/ui/label"<Label htmlFor="email">Email address</Label>Examples
With input
<div className="flex flex-col gap-1.5">
<Label htmlFor="name">Full name</Label>
<Input id="name" placeholder="John Doe" />
</div>Required
<Label htmlFor="email" required>Email address</Label>Disabled
<Label htmlFor="input" className="opacity-50 cursor-not-allowed">Username</Label>
<Input id="input" disabled />Last updated on