{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "radio-group",
  "title": "Radio group",
  "description": "`RadioGroupItem value id` · a `Label htmlFor` the same id names it",
  "dependencies": [
    "@rn-primitives/radio-group@^1.5.2"
  ],
  "registryDependencies": [
    "@kit-native/label",
    "@kit-native/lib-utils"
  ],
  "files": [
    {
      "path": "components/ui/radio-group.tsx",
      "content": "import { labelIdFor } from '@/components/ui/label';\nimport { cn } from '@/lib/utils';\nimport * as RadioGroupPrimitive from '@rn-primitives/radio-group';\nimport { Platform } from 'react-native';\n\nfunction RadioGroup({\n  className,\n  ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n  return <RadioGroupPrimitive.Root className={cn('gap-3', className)} {...props} />;\n}\n\nfunction RadioGroupItem({\n  className,\n  ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n  return (\n    <RadioGroupPrimitive.Item\n      className={cn(\n        'border-input dark:bg-input/30 aspect-square size-6 shrink-0 items-center justify-center rounded-full border shadow-sm',\n        Platform.select({\n          web: 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive outline-none transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed',\n        }),\n        props.disabled && 'opacity-50',\n        className\n      )}\n      // On web the item is a div, which `<Label htmlFor>` cannot label; point at the Label's id instead.\n      aria-labelledby={props.id ? labelIdFor(props.id) : undefined}\n      {...props}>\n      <RadioGroupPrimitive.Indicator className=\"bg-primary size-3 rounded-full\" />\n    </RadioGroupPrimitive.Item>\n  );\n}\n\nexport { RadioGroup, RadioGroupItem };\n",
      "type": "registry:ui",
      "target": "components/ui/radio-group.tsx"
    }
  ],
  "meta": {
    "exports": [
      "RadioGroup"
    ],
    "api": "<RadioGroup value onValueChange><RadioGroupItem value id /></RadioGroup>"
  },
  "docs": "Run `npx expo install --fix` afterwards so Expo SDK packages match your SDK. Needs the kit theme (`@kit-native/theme`) and `KitThemeProvider` from `@kit-native/lib-theme-context` at the root.",
  "categories": [
    "inputs"
  ],
  "type": "registry:ui"
}