8.4k

Label

Renders an accessible label associated with controls.

Installation

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

Usage

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

Examples

For accessible labelling and validation, prefer using the FieldLabel component. See some related examples.

With Checkbox

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).