GitHub

Label

Renders an accessible label associated with controls.

Loading
Loading...
import { Checkbox } from "@/components/ui/checkbox";
import { Label } from "@/components/ui/label";
 
export function LabelDemo() {
  return (
    <div className="flex gap-2">
      <Checkbox id="terms" />
      <Label htmlFor="terms">Accept terms and conditions</Label>
    </div>
  );
}

Installation

npx shadcn@latest add "https://ui.blode.co/r/styles/default/label"

Usage

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