Search

Search documentation

Label

Renders an accessible label associated with controls.

Installation

pnpm dlx shadcn@latest add @evolphin/label

Usage

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

Examples

Default

API Reference

Label

PropTypeDefaultDescription
htmlForstring-The ID of the element the label is associated with.
classNamestring-Additional CSS classes

On this page