{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/radio-group-09","type":"registry:component","title":"Radio Group 9","description":"A list-style radio group with pricing and badges for plan selection","registryDependencies":["badge","label","radio-group"],"files":[{"path":"src/registry/new-york/components/radio-group/radio-group-09.tsx","content":"import { useId } from 'react'\n\nimport { Badge } from '@/registry/new-york/ui/badge'\nimport { Label } from '@/registry/new-york/ui/label'\nimport { RadioGroup, RadioGroupItem } from '@/registry/new-york/ui/radio-group'\n\nconst RadioGroupListGroupDemo = () => {\n  const id = useId()\n\n  const items = [\n    { value: '1', label: 'Pro', price: '$39/mo' },\n    { value: '2', label: 'Team', price: '$69/mo' },\n    { value: '3', label: 'Enterprise', price: 'Custom' }\n  ]\n\n  return (\n    <RadioGroup className='w-full max-w-96 gap-0 -space-y-px rounded-md shadow-xs' defaultValue='2'>\n      {items.map(item => (\n        <div\n          key={`${id}-${item.value}`}\n          className='border-input has-data-[state=checked]:border-primary/50 has-data-[state=checked]:bg-accent relative flex flex-col gap-4 border p-4 outline-none first:rounded-t-md last:rounded-b-md has-data-[state=checked]:z-10'\n        >\n          <div className='flex items-center justify-between'>\n            <div className='flex items-center gap-2'>\n              <RadioGroupItem\n                id={`${id}-${item.value}`}\n                value={item.value}\n                className='after:absolute after:inset-0'\n                aria-label={`plan-radio-${item.value}`}\n                aria-describedby={`${`${id}-${item.value}`}-price`}\n              />\n              <Label className='inline-flex items-center' htmlFor={`${id}-${item.value}`}>\n                {item.label}\n                {item.value === '2' && <Badge className='rounded-sm px-1.5 py-px text-xs'>Best Seller</Badge>}\n              </Label>\n            </div>\n            <div id={`${`${id}-${item.value}`}-price`} className='text-muted-foreground text-xs leading-[inherit]'>\n              {item.price}\n            </div>\n          </div>\n        </div>\n      ))}\n    </RadioGroup>\n  )\n}\n\nexport default RadioGroupListGroupDemo\n","type":"registry:component","target":"components/shadcn-studio/radio-group/radio-group-09.tsx"}]}