{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/radio-group-08","type":"registry:component","title":"Radio Group 8","description":"A chip-style radio group with grid layout for size selection","registryDependencies":["radio-group"],"files":[{"path":"src/registry/new-york/components/radio-group/radio-group-08.tsx","content":"import { useId } from 'react'\n\nimport { RadioGroup, RadioGroupItem } from '@/registry/new-york/ui/radio-group'\n\nconst RadioGroupChipDemo = () => {\n  const id = useId()\n\n  const items = [\n    { value: '1', label: 'Size: 6 (UK)' },\n    { value: '2', label: 'Size: 7 (UK)', disabled: true },\n    { value: '3', label: 'Size: 8 (UK)' },\n    { value: '4', label: 'Size: 9 (UK)' },\n    { value: '5', label: 'Size: 10 (UK)' }\n  ]\n\n  return (\n    <fieldset className='w-full max-w-96 space-y-4'>\n      <legend className='text-foreground text-sm leading-none font-medium'>Select Shoe Size: </legend>\n      <RadioGroup className='grid grid-cols-3 gap-2' defaultValue='1'>\n        {items.map(item => (\n          <label\n            key={`${id}-${item.value}`}\n            className='border-input has-focus-visible:border-ring has-focus-visible:ring-ring/50 has-data-[state=checked]:border-primary/80 relative flex flex-col items-center gap-3 rounded-md border px-2 py-3 text-center shadow-xs transition-[color,box-shadow] outline-none has-focus-visible:ring-3 has-data-disabled:cursor-not-allowed has-data-disabled:opacity-50'\n          >\n            <RadioGroupItem\n              id={`${id}-${item.value}`}\n              value={item.value}\n              className='sr-only after:absolute after:inset-0'\n              aria-label={`size-radio-${item.value}`}\n              disabled={item.disabled}\n            />\n            <p className='text-foreground text-sm leading-none font-medium'>{item.label}</p>\n          </label>\n        ))}\n      </RadioGroup>\n    </fieldset>\n  )\n}\n\nexport default RadioGroupChipDemo\n","type":"registry:component","target":"components/shadcn-studio/radio-group/radio-group-08.tsx"}]}