Docs
Label

Label

Renders an accessible label associated with controls.

Installation

npx shadcn@latest add label

Usage

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