{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-163",
  "type": "registry:component",
  "title": "Comp 163",
  "description": "Comp 163",
  "files": [
    {
      "path": "registry/ui-basic/comp-163.tsx",
      "content": "import { useId } from \"react\";\n\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\";\nimport { RiAppleLine, RiBankCardLine, RiPaypalLine } from \"@remixicon/react\";\n\nexport default function Component() {\n\tconst id = useId();\n\treturn (\n\t\t<RadioGroup className=\"grid-cols-3\" defaultValue=\"1\">\n\t\t\t{/* Credit card */}\n\t\t\t<div className=\"border-input has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-ring/50 relative flex cursor-pointer flex-col items-center gap-3 rounded-md border px-2 py-3 text-center shadow-2xs transition-[color,box-shadow] outline-hidden has-focus-visible:ring-[3px]\">\n\t\t\t\t<RadioGroupItem id={`${id}-1`} value=\"1\" className=\"sr-only\" />\n\t\t\t\t<RiBankCardLine\n\t\t\t\t\tclassName=\"opacity-60\"\n\t\t\t\t\tsize={20}\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t/>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={`${id}-1`}\n\t\t\t\t\tclassName=\"text-foreground cursor-pointer text-xs leading-none font-medium after:absolute after:inset-0\"\n\t\t\t\t>\n\t\t\t\t\tCard\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t\t{/* PayPal */}\n\t\t\t<div className=\"border-input has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-ring/50 relative flex cursor-pointer flex-col items-center gap-3 rounded-md border px-2 py-3 text-center shadow-2xs transition-[color,box-shadow] outline-hidden has-focus-visible:ring-[3px]\">\n\t\t\t\t<RadioGroupItem id={`${id}-2`} value=\"2\" className=\"sr-only\" />\n\t\t\t\t<RiPaypalLine className=\"opacity-60\" size={20} aria-hidden=\"true\" />\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={`${id}-2`}\n\t\t\t\t\tclassName=\"text-foreground cursor-pointer text-xs leading-none font-medium after:absolute after:inset-0\"\n\t\t\t\t>\n\t\t\t\t\tPayPal\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t\t{/* Apple Pay */}\n\t\t\t<div className=\"border-input has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-ring/50 relative flex cursor-pointer flex-col items-center gap-3 rounded-md border px-2 py-3 text-center shadow-2xs transition-[color,box-shadow] outline-hidden has-focus-visible:ring-[3px]\">\n\t\t\t\t<RadioGroupItem id={`${id}-3`} value=\"3\" className=\"sr-only\" />\n\t\t\t\t<RiAppleLine className=\"opacity-60\" size={20} aria-hidden=\"true\" />\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={`${id}-3`}\n\t\t\t\t\tclassName=\"text-foreground cursor-pointer text-xs leading-none font-medium after:absolute after:inset-0\"\n\t\t\t\t>\n\t\t\t\t\tApple Pay\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t</RadioGroup>\n\t);\n}\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"
    },
    {
      "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"
    }
  ]
}