0

Label

Renders an accessible label associated with controls.

import { Checkbox } from "@/components/ui/checkbox"
import { Label } from "@/components/ui/label"

For form fields, use the Field component which includes built-in label, description, and error handling.

Installation

bunx --bun shadcn@latest add @ondo-ui/label

Usage

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

API reference

The component wraps Base UI Label and accepts all of its props.