{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "label",
  "type": "registry:ui",
  "title": "Label",
  "description": "The text name of a control. Clicking it focuses or toggles the control it points to.",
  "categories": [
    "ui"
  ],
  "dependencies": [
    "radix-ui"
  ],
  "registryDependencies": [
    "@rivier-ui/theme",
    "@rivier-ui/cn"
  ],
  "files": [
    {
      "path": "registry/ui/label.tsx",
      "type": "registry:ui",
      "target": "components/ui/label.tsx",
      "content": "\"use client\";\n/**\n * @name label\n * @category ui\n * @description The text name of a control. Clicking it focuses or toggles the control it points to.\n * @when Every control needs one. Point it at a control with htmlFor, or wrap a checkbox, radio or switch in it so the whole row is the hit area. Inside field, use FieldLabel, which wires htmlFor for you.\n * @example\n * <Label htmlFor=\"email\">Email</Label>\n * <Input id=\"email\" type=\"email\" />\n * <Label><Checkbox /> Remember me</Label>\n */\nimport { Label as LabelPrimitive } from \"radix-ui\";\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"@/lib/cn\";\n\nexport function Label({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>) {\n  return (\n    <LabelPrimitive.Root\n      data-slot=\"label\"\n      className={cn(\n        \"flex items-center gap-2 text-sm font-medium leading-tight text-foreground select-none peer-disabled:pointer-events-none peer-disabled:opacity-50 has-disabled:pointer-events-none has-disabled:opacity-50 has-data-disabled:pointer-events-none has-data-disabled:opacity-50\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n"
    }
  ],
  "meta": {
    "category": "ui",
    "when": "Every control needs one. Point it at a control with htmlFor, or wrap a checkbox, radio or switch in it so the whole row is the hit area. Inside field, use FieldLabel, which wires htmlFor for you.",
    "example": "<Label htmlFor=\"email\">Email</Label>\n<Input id=\"email\" type=\"email\" />\n<Label><Checkbox /> Remember me</Label>",
    "client": true
  }
}
