{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ipad-04",
  "type": "registry:component",
  "title": "Apple iPad",
  "files": [
    {
      "path": "registry/designali/components/apple/ipad/ipad-04.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { IPad } from \"@/registry/designali/ui/apple/ipad\"\n\ntype IPadColor =\n  | \"blue\"\n  | \"purple\"\n  | \"space-grey\"\n  | \"starlight\"\n\nexport function IPadColorDemo() {\n  const [color, setColor] = useState<IPadColor>(\"blue\")\n\n  const options: {\n    value: IPadColor\n    label: string\n  }[] = [\n    { value: \"blue\", label: \"Blue\" },\n    { value: \"purple\", label: \"Purple\" },\n    { value: \"space-grey\", label: \"Space Grey\" },\n    { value: \"starlight\", label: \"Starlight\" },\n  ]\n\n  return (\n    <div className=\"flex flex-col items-center justify-center gap-10 p-8\">\n      <div className=\"flex flex-wrap items-center justify-center gap-1 rounded-lg bg-gray-100 p-1 dark:bg-zinc-800\">\n        {options.map((option) => (\n          <button\n            key={option.value}\n            onClick={() => setColor(option.value)}\n            className={`rounded-md px-4 py-2 text-sm font-medium transition-all ${\n              color === option.value\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            {option.label}\n          </button>\n        ))}\n      </div>\n\n      <IPad\n        variant=\"ipad-air\"\n        color={color}\n        size=\"lg\"\n      >\n        <iframe\n          src=\"https://design-agency.designali.com/\"\n          className=\"block size-full border-0\"\n          loading=\"lazy\"\n          referrerPolicy=\"strict-origin-when-cross-origin\"\n        />\n      </IPad>\n    </div>\n  )\n}",
      "type": "registry:component"
    }
  ]
}