{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/radio-group-10","type":"registry:component","title":"Radio Group 10","description":"A split-list radio group with highlighted selected state and pricing","registryDependencies":["badge","label","radio-group"],"files":[{"path":"src/registry/new-york/components/radio-group/radio-group-10.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 RadioGroupSplitListGroupDemo = () => {\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-2 rounded-md *:rounded-full' defaultValue='2'>\n      {items.map(item => (\n        <div\n          key={`${id}-${item.value}`}\n          className='border-input has-data-[state=checked]:bg-primary has-data-[state=checked]:text-primary-foreground relative flex flex-col gap-4 border p-4 outline-none has-data-[state=checked]:z-10'\n        >\n          <div className='group 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                aria-label={`plan-radio-${item.value}`}\n                className='bg-accent text-primary data-[state=checked]:border-primary-foreground data-[state=checked]:bg-primary-foreground! data-[state=checked]:[&_svg]:fill-primary after:absolute after:inset-0'\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' && (\n                  <Badge\n                    variant='outline'\n                    className='rounded-sm border-green-500 bg-green-500/10 px-1.5 py-px text-xs text-green-500'\n                  >\n                    Best Seller\n                  </Badge>\n                )}\n              </Label>\n            </div>\n            <div\n              id={`${`${id}-${item.value}`}-price`}\n              className='group-has-checked:text-primary-foreground text-xs leading-[inherit]'\n            >\n              {item.price}\n            </div>\n          </div>\n        </div>\n      ))}\n    </RadioGroup>\n  )\n}\n\nexport default RadioGroupSplitListGroupDemo\n","type":"registry:component","target":"components/shadcn-studio/radio-group/radio-group-10.tsx"}]}