For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Label

Renders an accessible label associated with controls.

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

export function LabelDemo() {
  return (
    <Label htmlFor="terms">

Installation

$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.vercel.app/r/label.json

Usage

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

RTL

To enable right-to-left support, see the RTL guide.

"use client";

import * as React from "react";

import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";

API Reference

See the Base UI Label documentation for more information.