{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-158",
  "type": "registry:component",
  "title": "Comp 158",
  "description": "Comp 158",
  "files": [
    {
      "path": "registry/ui-basic/comp-158.tsx",
      "content": "import { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\";\r\n\r\nexport default function Component() {\r\n\treturn (\r\n\t\t<fieldset className=\"space-y-4\">\r\n\t\t\t<legend className=\"text-foreground text-sm leading-none font-medium\">\r\n\t\t\t\tChoose a color\r\n\t\t\t</legend>\r\n\t\t\t<RadioGroup className=\"flex gap-1.5\" defaultValue=\"blue\">\r\n\t\t\t\t<RadioGroupItem\r\n\t\t\t\t\tvalue=\"blue\"\r\n\t\t\t\t\taria-label=\"Blue\"\r\n\t\t\t\t\tclassName=\"size-6 border-blue-500 bg-blue-500 shadow-none data-[state=checked]:border-blue-500 data-[state=checked]:bg-blue-500\"\r\n\t\t\t\t/>\r\n\t\t\t\t<RadioGroupItem\r\n\t\t\t\t\tvalue=\"indigo\"\r\n\t\t\t\t\taria-label=\"Indigo\"\r\n\t\t\t\t\tclassName=\"size-6 border-indigo-500 bg-indigo-500 shadow-none data-[state=checked]:border-indigo-500 data-[state=checked]:bg-indigo-500\"\r\n\t\t\t\t/>\r\n\t\t\t\t<RadioGroupItem\r\n\t\t\t\t\tvalue=\"pink\"\r\n\t\t\t\t\taria-label=\"Pink\"\r\n\t\t\t\t\tclassName=\"size-6 border-pink-500 bg-pink-500 shadow-none data-[state=checked]:border-pink-500 data-[state=checked]:bg-pink-500\"\r\n\t\t\t\t/>\r\n\t\t\t\t<RadioGroupItem\r\n\t\t\t\t\tvalue=\"red\"\r\n\t\t\t\t\taria-label=\"red\"\r\n\t\t\t\t\tclassName=\"size-6 border-red-500 bg-red-500 shadow-none data-[state=checked]:border-red-500 data-[state=checked]:bg-red-500\"\r\n\t\t\t\t/>\r\n\t\t\t\t<RadioGroupItem\r\n\t\t\t\t\tvalue=\"orange\"\r\n\t\t\t\t\taria-label=\"orange\"\r\n\t\t\t\t\tclassName=\"size-6 border-orange-500 bg-orange-500 shadow-none data-[state=checked]:border-orange-500 data-[state=checked]:bg-orange-500\"\r\n\t\t\t\t/>\r\n\t\t\t\t<RadioGroupItem\r\n\t\t\t\t\tvalue=\"amber\"\r\n\t\t\t\t\taria-label=\"amber\"\r\n\t\t\t\t\tclassName=\"size-6 border-amber-500 bg-amber-500 shadow-none data-[state=checked]:border-amber-500 data-[state=checked]:bg-amber-500\"\r\n\t\t\t\t/>\r\n\t\t\t\t<RadioGroupItem\r\n\t\t\t\t\tvalue=\"emerald\"\r\n\t\t\t\t\taria-label=\"emerald\"\r\n\t\t\t\t\tclassName=\"size-6 border-emerald-500 bg-emerald-500 shadow-none data-[state=checked]:border-emerald-500 data-[state=checked]:bg-emerald-500\"\r\n\t\t\t\t/>\r\n\t\t\t</RadioGroup>\r\n\t\t</fieldset>\r\n\t);\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"
    },
    {
      "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"
    }
  ]
}