{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "imac-04",
  "type": "registry:component",
  "title": "Apple iMac",
  "files": [
    {
      "path": "registry/designali/components/apple/imac/imac-04.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { IMac } from \"@/registry/designali/ui/apple/imac\" \n\nconst colors = [\n  \"blue\",\n  \"green\",\n  \"pink\",\n  \"silver\",\n  \"yellow\",\n  \"orange\",\n  \"purple\",\n] as const;\n\ntype IMacColor = typeof colors[number];\n\nexport function IMacColorsDemo() {\n  const [activeColor, setActiveColor] = useState<IMacColor>(\"blue\")\n\n  return (\n    <div className=\"flex flex-col items-center justify-center gap-12 p-8\">\n      {/* Tabs / Radio Toggle */}\n      <div className=\"flex flex-wrap items-center justify-center gap-1 rounded-lg bg-gray-100 p-1 dark:bg-zinc-800\">\n        {colors.map((color) => (\n          <button\n            key={color}\n            onClick={() => setActiveColor(color)}\n            className={`capitalize rounded-md px-4 py-2 text-sm font-medium transition-all duration-200 ${\n              activeColor === color\n                ? \"bg-white text-black shadow-sm dark:bg-zinc-950 dark:text-white\"\n                : \"text-gray-500 hover:text-gray-900 dark:text-zinc-400 dark:hover:text-zinc-100\"\n            }`}\n          >\n            {color}\n          </button>\n        ))}\n      </div>\n\n      {/* Active IMac Display */}\n      <div className=\"flex flex-col items-center\">\n        <IMac size=\"lg\" color={activeColor}>\n          <div className=\"flex h-full items-center justify-center bg-background\">\n            <p className=\"text-2xl font-medium capitalize\">{activeColor} iMac</p>\n          </div>\n        </IMac>\n      </div>\n    </div>\n  );\n}",
      "type": "registry:component"
    }
  ]
}