{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "iphone-03",
  "type": "registry:component",
  "title": "Apple iPhone",
  "files": [
    {
      "path": "registry/designali/components/apple/iphone/iphone-03.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { IPhone } from \"@/registry/designali/ui/apple/iphone\"\n\ntype IPhoneSize = \"sm\" | \"md\" | \"lg\" | \"xl\"\n\nexport function IPhoneSizeDemo() {\n  const [size, setSize] =\n    useState<IPhoneSize>(\"md\")\n\n  const options: {\n    value: IPhoneSize\n    label: string\n  }[] = [\n    { value: \"sm\", label: \"Small\" },\n    { value: \"md\", label: \"Medium\" },\n    { value: \"lg\", label: \"Large\" },\n    { value: \"xl\", label: \"Extra Large\" },\n  ]\n\n  return (\n    <div className=\"flex flex-col items-center justify-center gap-12 p-8\">\n\n      {/* Size Tabs */}\n      <div className=\"flex items-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={() => setSize(option.value)}\n            className={`rounded-md px-4 py-2 text-sm font-medium transition-all ${\n              size === 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      {/* iPhone */}\n      <IPhone\n        size={size}\n        variant=\"18-pro\"\n        color=\"silver\"\n      >\n        <div className=\"flex h-full items-center justify-center\">\n          <span className=\"text-2xl font-semibold\">\n            {options.find(\n              (option) => option.value === size\n            )?.label}\n          </span>\n        </div>\n      </IPhone>\n\n    </div>\n  )\n}",
      "type": "registry:component"
    }
  ]
}