{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "radio-group",
  "title": "Radio Group",
  "description": "Material radio buttons.",
  "dependencies": [
    "@base-ui/react@^1.7.0"
  ],
  "registryDependencies": [
    "https://guillermo-rebolledo.github.io/materialcn/r/materialcn-theme.json",
    "https://guillermo-rebolledo.github.io/materialcn/r/utils.json"
  ],
  "files": [
    {
      "path": "src/components/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({ className, ...props }: RadioGroupPrimitive.Props) {\n  return (\n    <RadioGroupPrimitive\n      data-slot=\"radio-group\"\n      className={cn(\"grid w-full gap-2\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {\n  return (\n    <RadioPrimitive.Root\n      data-slot=\"radio-group-item\"\n      className={cn(\n        \"group/radio-group-item peer relative flex aspect-square size-5 shrink-0 cursor-pointer items-center justify-center rounded-m3-full border-2 border-m3-on-surface-variant outline-none \" +\n          \"transition-colors duration-(--m3-spring-effects-fast-duration) ease-(--m3-spring-effects-fast) \" +\n          \"after:absolute after:-inset-3.5 \" +\n          // 40dp circular state layer (8 / 10 / 10 %) in the content colour.\n          \"before:pointer-events-none before:absolute before:-inset-2.5 before:rounded-full before:bg-m3-on-surface before:opacity-0 \" +\n          \"before:transition-opacity before:duration-(--m3-spring-effects-fast-duration) before:ease-(--m3-spring-effects-fast) \" +\n          \"hover:not-disabled:before:opacity-8 focus-visible:before:opacity-10 active:not-disabled:before:opacity-10 \" +\n          \"data-checked:before:bg-m3-primary aria-invalid:before:bg-m3-error \" +\n          \"data-unchecked:hover:not-disabled:border-m3-on-surface data-unchecked:focus-visible:border-m3-on-surface \" +\n          // Focus indicator wraps the 40dp state layer.\n          \"focus-visible:outline-m3-secondary focus-visible:outline-3 focus-visible:outline-offset-[10px] \" +\n          \"disabled:cursor-not-allowed data-disabled:cursor-not-allowed disabled:border-m3-on-surface/38 data-disabled:border-m3-on-surface/38 \" +\n          \"aria-invalid:border-m3-error \" +\n          \"data-checked:border-m3-primary data-checked:text-m3-primary \" +\n          \"data-checked:disabled:border-m3-on-surface/38 data-checked:data-disabled:border-m3-on-surface/38 data-checked:disabled:text-m3-on-surface/38 data-checked:data-disabled:text-m3-on-surface/38\",\n        className\n      )}\n      {...props}\n    >\n      <RadioPrimitive.Indicator\n        data-slot=\"radio-group-indicator\"\n        className=\"flex size-full items-center justify-center\"\n      >\n        {/* M3 draws a 10dp dot in the *border* color, not a knocked-out hole. */}\n        <span\n          className={cn(\n            \"size-2.5 rounded-m3-full bg-current\",\n            \"transition-transform duration-(--m3-spring-spatial-fast-duration) ease-(--m3-spring-spatial-fast)\",\n            \"group-data-checked/radio-group-item:scale-100 scale-0\",\n          )}\n        />\n      </RadioPrimitive.Indicator>\n    </RadioPrimitive.Root>\n  )\n}\n\nexport { RadioGroup, RadioGroupItem }\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "forms"
  ],
  "type": "registry:ui"
}