{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "radio-group",
  "title": "Radio Group",
  "description": "A set of radio buttons where only one can be selected at a time.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "@cupertinoui/macos-theme"
  ],
  "files": [
    {
      "path": "registry/macos/ui/radio-group.tsx",
      "content": "\"use client\"\n\nimport { Radio as RadioPrimitive } from \"@base-ui/react/radio\"\nimport { RadioGroup as RadioGroupPrimitive } from \"@base-ui/react/radio-group\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction RadioGroup({\n  className,\n  ...props\n}: RadioGroupPrimitive.Props) {\n  return (\n    <RadioGroupPrimitive\n      data-slot=\"radio-group\"\n      className={cn(\"grid gap-2\", className)}\n      {...props}\n    />\n  )\n}\n\n// A macOS 27 radio button: a 16px circle, filled with the accent color and a\n// white dot when selected.\nfunction RadioGroupItem({\n  className,\n  ...props\n}: RadioPrimitive.Root.Props) {\n  return (\n    <RadioPrimitive.Root\n      data-slot=\"radio-group-item\"\n      className={cn(\n        \"flex aspect-square size-4 shrink-0 items-center justify-center rounded-full bg-mac-fill-primary text-white outline-none focus-visible:mac-focus-ring active:bg-black/19 data-disabled:cursor-not-allowed data-disabled:opacity-40 aria-invalid:mac-focus-ring data-checked:bg-mac-accent dark:active:bg-white/19 group-data-[inactive]/window:data-checked:bg-black/14 group-data-[inactive]/window:data-checked:text-black/70 dark:group-data-[inactive]/window:data-checked:bg-white/18 dark:group-data-[inactive]/window:data-checked:text-white/70\",\n        className\n      )}\n      {...props}\n    >\n      <RadioPrimitive.Indicator\n        data-slot=\"radio-group-indicator\"\n        className=\"flex items-center justify-center\"\n      >\n        <span className=\"size-[4.8px] rounded-full bg-current\" />\n      </RadioPrimitive.Indicator>\n    </RadioPrimitive.Root>\n  )\n}\n\nexport { RadioGroup, RadioGroupItem }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}