{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-159",
  "type": "registry:component",
  "title": "Comp 159",
  "description": "Comp 159",
  "files": [
    {
      "path": "registry/ui-basic/comp-159.tsx",
      "content": "import { useId } from \"react\";\n\nimport { Label } from \"@/components/ui/label\";\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\";\n\nexport default function Component() {\n\tconst id = useId();\n\treturn (\n\t\t<RadioGroup className=\"gap-2\" defaultValue=\"1\">\n\t\t\t{/* Radio card #1 */}\n\t\t\t<div className=\"border-input has-data-[state=checked]:border-primary/50 relative flex w-full items-start gap-2 rounded-md border p-4 shadow-2xs outline-hidden\">\n\t\t\t\t<RadioGroupItem\n\t\t\t\t\tvalue=\"1\"\n\t\t\t\t\tid={`${id}-1`}\n\t\t\t\t\taria-describedby={`${id}-1-description`}\n\t\t\t\t\tclassName=\"order-1 after:absolute after:inset-0\"\n\t\t\t\t/>\n\t\t\t\t<div className=\"grid grow gap-2\">\n\t\t\t\t\t<Label htmlFor={`${id}-1`}>\n\t\t\t\t\t\tLabel{\" \"}\n\t\t\t\t\t\t<span className=\"text-muted-foreground text-xs leading-[inherit] font-normal\">\n\t\t\t\t\t\t\t(Sublabel)\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Label>\n\t\t\t\t\t<p\n\t\t\t\t\t\tid={`${id}-1-description`}\n\t\t\t\t\t\tclassName=\"text-muted-foreground text-xs\"\n\t\t\t\t\t>\n\t\t\t\t\t\tYou can use this card with a label and a description.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{/* Radio card #2 */}\n\t\t\t<div className=\"border-input has-data-[state=checked]:border-primary/50 relative flex w-full items-start gap-2 rounded-md border p-4 shadow-2xs outline-hidden\">\n\t\t\t\t<RadioGroupItem\n\t\t\t\t\tvalue=\"2\"\n\t\t\t\t\tid={`${id}-2`}\n\t\t\t\t\taria-describedby={`${id}-2-description`}\n\t\t\t\t\tclassName=\"order-1 after:absolute after:inset-0\"\n\t\t\t\t/>\n\t\t\t\t<div className=\"grid grow gap-2\">\n\t\t\t\t\t<Label htmlFor={`${id}-2`}>\n\t\t\t\t\t\tLabel{\" \"}\n\t\t\t\t\t\t<span className=\"text-muted-foreground text-xs leading-[inherit] font-normal\">\n\t\t\t\t\t\t\t(Sublabel)\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Label>\n\t\t\t\t\t<p\n\t\t\t\t\t\tid={`${id}-2-description`}\n\t\t\t\t\t\tclassName=\"text-muted-foreground text-xs\"\n\t\t\t\t\t>\n\t\t\t\t\t\tYou can use this card with a label and a description.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</RadioGroup>\n\t);\n}\n",
      "type": "registry:ui"
    },
    {
      "path": "components/ui/label.tsx",
      "content": "\"use client\";\n\nimport React from \"react\";\n\nimport { cn } from \"@/registry/utilities/cn\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nconst labelVariants = cva(\n\t\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n);\n\nconst Label = React.forwardRef<\n\tReact.ElementRef<typeof LabelPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n\t\tVariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n\t<LabelPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cn(labelVariants(), className)}\n\t\t{...props}\n\t/>\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n",
      "type": "registry:ui"
    },
    {
      "path": "registry/utilities/cn.ts",
      "content": "import { ClassValue, clsx } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n\treturn twMerge(clsx(inputs));\r\n}\r\n",
      "type": "registry:ui"
    },
    {
      "path": "components/ui/radio-group.tsx",
      "content": "\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\nimport { cn } from \"@/registry/utilities/cn\";\r\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\r\nimport { Circle } from \"lucide-react\";\r\n\r\nconst RadioGroup = React.forwardRef<\r\n\tReact.ElementRef<typeof RadioGroupPrimitive.Root>,\r\n\tReact.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\r\n>(({ className, ...props }, ref) => {\r\n\treturn (\r\n\t\t<RadioGroupPrimitive.Root\r\n\t\t\tclassName={cn(\"grid gap-2\", className)}\r\n\t\t\t{...props}\r\n\t\t\tref={ref}\r\n\t\t/>\r\n\t);\r\n});\r\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\r\n\r\nconst RadioGroupItem = React.forwardRef<\r\n\tReact.ElementRef<typeof RadioGroupPrimitive.Item>,\r\n\tReact.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\r\n>(({ className, ...props }, ref) => {\r\n\treturn (\r\n\t\t<RadioGroupPrimitive.Item\r\n\t\t\tref={ref}\r\n\t\t\tclassName={cn(\r\n\t\t\t\t\"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\r\n\t\t\t\tclassName\r\n\t\t\t)}\r\n\t\t\t{...props}\r\n\t\t>\r\n\t\t\t<RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\r\n\t\t\t\t<Circle className=\"h-2.5 w-2.5 fill-current text-current\" />\r\n\t\t\t</RadioGroupPrimitive.Indicator>\r\n\t\t</RadioGroupPrimitive.Item>\r\n\t);\r\n});\r\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\r\n\r\nexport { RadioGroup, RadioGroupItem };\r\n",
      "type": "registry:ui"
    }
  ]
}