{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "radio-04",
  "title": "Radio group with descriptions",
  "description": "Each option has a quiet sublabel and a line of help.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/label.json",
    "https://ui.ndekocode.dev/r/radio-group.json",
    "https://ui.ndekocode.dev/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/radio/radio-04.tsx",
      "content": "import { useId } from 'react';\n\nimport { Label } from '@/registry/ndeko/ui/label';\nimport { RadioGroup, RadioGroupItem } from '@/registry/ndeko/ui/radio-group';\n\nconst PLANS = [\n  {\n    value: 'starter',\n    label: 'Starter',\n    note: '3 projects',\n    description: 'For one person trying things out.',\n  },\n  {\n    value: 'team',\n    label: 'Team',\n    note: 'Unlimited projects',\n    description: 'Shared boards, guests and roles for a whole team.',\n  },\n];\n\nexport default function Radio04() {\n  const id = useId();\n\n  return (\n    <RadioGroup defaultValue='starter' aria-label='Plan' className='gap-6'>\n      {PLANS.map((plan) => {\n        const itemId = `${id}-${plan.value}`;\n        const descriptionId = `${itemId}-description`;\n\n        return (\n          <div key={plan.value} className='flex items-start gap-2'>\n            <RadioGroupItem\n              value={plan.value}\n              id={itemId}\n              aria-describedby={descriptionId}\n            />\n            <div className='grid grow gap-1.5'>\n              <Label htmlFor={itemId}>\n                {plan.label}{' '}\n                <span className='text-muted-foreground text-xs leading-[inherit] font-normal'>\n                  ({plan.note})\n                </span>\n              </Label>\n              <p id={descriptionId} className='text-muted-foreground text-xs'>\n                {plan.description}\n              </p>\n            </div>\n          </div>\n        );\n      })}\n    </RadioGroup>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "radio"
  ],
  "type": "registry:component"
}