{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "label",
  "type": "registry:ui",
  "title": "Label",
  "description": "@interlace/ui — label primitive (shadcn-compatible).",
  "dependencies": [],
  "registryDependencies": [
    "theme"
  ],
  "files": [
    {
      "path": "registry/interlace-ui/label.tsx",
      "target": "components/ui/label.tsx",
      "type": "registry:ui",
      "content": "// Form-control label. No headless dep — Base UI's `Field.Label` is the\n// MDX/forms-aware variant; this is the lower-level shadcn-canon label.\n// Mirrors: https://ui.shadcn.com/docs/components/label\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nfunction Label({ className, ...props }: React.ComponentProps<'label'>) {\n  return (\n    // htmlFor (or a nested control) is supplied by the consumer via\n    // {...props}; the rule only recognizes a literal htmlFor attribute, not\n    // one from a spread.\n    // eslint-disable-next-line react-a11y/label-has-associated-control\n    <label\n      data-slot=\"label\"\n      className={cn(\n        'flex select-none items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50',\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\nexport { Label };\n"
    }
  ]
}
