{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"label","title":"Label","author":"brijr","description":"A form label.","dependencies":["@ui-sdk/react","@ui-sdk/core","cn"],"files":[{"path":"components/ui/label.tsx","content":"import * as React from \"react\"\nimport { Label as LabelPrimitive } from \"@ui-sdk/react/label\"\nimport { cn } from \"cn\"\n\nfunction Label({\n  className,\n  ...props\n}: Omit<React.ComponentProps<typeof LabelPrimitive>, \"className\"> & {\n  className?: string\n}) {\n  return (\n    <LabelPrimitive\n      className={cn(\n        // In a disabled Field the label dims, so a control it wraps must not dim a second time.\n        \"flex items-center gap-2 text-sm leading-snug font-medium select-none group-has-[>:disabled]/field:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 group-data-disabled/field:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50 peer-data-[disabled]:cursor-not-allowed peer-data-[disabled]:opacity-50 group-data-disabled/field:*:data-disabled:opacity-100!\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Label }\n","type":"registry:ui"}],"type":"registry:ui"}