{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "radio-11",
  "title": "Radio tiles",
  "description": "A two-column grid of tool tiles where one is picked.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/icons.json",
    "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-11.tsx",
      "content": "import { useId } from 'react';\n\nimport {\n  BrushIcon,\n  EraserIcon,\n  type Icon,\n  ScissorsIcon,\n  SwatchBookIcon,\n} from '@/registry/ndeko/lib/icons';\nimport { Label } from '@/registry/ndeko/ui/label';\nimport { RadioGroup, RadioGroupItem } from '@/registry/ndeko/ui/radio-group';\n\ntype Tool = {\n  value: string;\n  label: string;\n  Icon: Icon;\n};\n\nconst TOOLS: Tool[] = [\n  { value: 'palette', label: 'Palette', Icon: SwatchBookIcon },\n  { value: 'brush', label: 'Brush', Icon: BrushIcon },\n  { value: 'eraser', label: 'Eraser', Icon: EraserIcon },\n  { value: 'cut', label: 'Cut', Icon: ScissorsIcon },\n];\n\nconst CHOICE_CARD = [\n  'relative flex flex-col gap-4 rounded-xl bg-card p-4 shadow-[0_1px_2px_rgb(0_0_0/0.04)] hairline-ring ring-border transition-[box-shadow] duration-150',\n  'has-data-checked:shadow-[0_1px_2px_rgb(0_0_0/0.04),0_6px_16px_-8px_color-mix(in_oklab,var(--primary)_35%,transparent)] has-data-checked:ring-primary/45',\n].join(' ');\n\nexport default function Radio11() {\n  const id = useId();\n\n  return (\n    <RadioGroup\n      defaultValue='palette'\n      aria-label='Tool'\n      className='w-full grid-cols-2'\n    >\n      {TOOLS.map((tool) => {\n        const itemId = `${id}-${tool.value}`;\n\n        return (\n          <div key={tool.value} className={CHOICE_CARD}>\n            <div className='flex justify-between gap-2'>\n              <RadioGroupItem\n                value={tool.value}\n                id={itemId}\n                className='order-1 after:absolute after:inset-0'\n              />\n              <tool.Icon className='text-muted-foreground size-4' />\n            </div>\n            <Label htmlFor={itemId}>{tool.label}</Label>\n          </div>\n        );\n      })}\n    </RadioGroup>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "radio"
  ],
  "type": "registry:component"
}