Go to...

Choose a page to open.

A caption for a form control.

Label

label-demo

Installation

pnpm dlx shadcn@latest add https://ui.n2020.com/r/label.json

Usage

import { Label } from "@/components/ui/label";
<Label htmlFor="username">Username</Label>

Set htmlFor to the id of the control. A click on the label then focuses the control.