{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "label",
  "type": "registry:ui",
  "title": "Label",
  "description": "A form label with an optional required marker.",
  "registryDependencies": [
    "https://junco.madebytobi.com/r/junco-theme.json",
    "https://junco.madebytobi.com/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/junco/ui/label.tsx",
      "type": "registry:ui",
      "content": "import * as React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {\n  /** Shows a required marker. Also set `required` on the control so assistive tech knows. */\n  isRequired?: boolean;\n}\n\n/** A form label with an optional required marker. */\nexport const Label = React.forwardRef<HTMLLabelElement, LabelProps>(\n  ({ className, isRequired, children, ...props }, ref) => (\n    <label\n      ref={ref}\n      className={cn(\n        \"inline-flex items-center gap-1 text-sm leading-5 font-medium text-foreground select-none\",\n        \"peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n        className,\n      )}\n      {...props}\n    >\n      {children}\n      {isRequired && (\n        <span aria-hidden className=\"text-destructive-text\">\n          *\n        </span>\n      )}\n    </label>\n  ),\n);\nLabel.displayName = \"Label\";\n"
    }
  ],
  "docs": "Docs and examples: https://junco.madebytobi.com/docs/components/label",
  "meta": {
    "hash": "7d4ea7d291399075",
    "source": "packages/react/src/components/label.tsx",
    "exports": [
      "LabelProps",
      "Label"
    ],
    "props": {
      "Label": {
        "extends": "React.LabelHTMLAttributes<HTMLLabelElement>",
        "props": [
          {
            "name": "isRequired",
            "optional": true,
            "type": "boolean",
            "description": "Shows a required marker. Also set `required` on the control so assistive tech knows."
          }
        ]
      }
    },
    "docsUrl": "https://junco.madebytobi.com/docs/components/label"
  }
}
