{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lightbox-demo",
  "title": "Lightbox Demo",
  "description": "A worked example of Lightbox: One image at a time, full bleed, with the rest of the set a key away.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/lightbox.json"
  ],
  "files": [
    {
      "path": "components/demos/lightbox-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { galleryImages } from \"@/components/demos/image-gallery-demo\"\nimport { ImageGrid } from \"@/registry/default/image-grid/image-grid\"\nimport { Lightbox } from \"@/registry/default/lightbox/lightbox\"\n\nconst images = galleryImages.slice(0, 4)\n\nexport function LightboxDemo() {\n  const [openId, setOpenId] = React.useState<string | null>(null)\n  const trigger = React.useRef<HTMLButtonElement>(null)\n\n  return (\n    <div className=\"w-full max-w-lg\">\n      <ImageGrid\n        images={images}\n        onSelect={(image, event) => {\n          trigger.current = event.currentTarget\n          setOpenId(image.id)\n        }}\n      />\n      <Lightbox\n        finalFocus={trigger}\n        images={images}\n        openId={openId}\n        onOpenIdChange={setOpenId}\n      />\n    </div>\n  )\n}\n",
      "type": "registry:example"
    },
    {
      "path": "components/demos/image-gallery-demo.tsx",
      "content": "\"use client\"\n\nimport { ImageGallery } from \"@/registry/default/image-gallery/image-gallery\"\n\nexport const galleryImages = [\n  {\n    id: \"shift-button\",\n    src: \"/demo/gallery/shift-button.png\",\n    alt: \"Shift Button experiment\",\n    width: 423,\n    height: 345,\n    caption: \"Shift Button\",\n    description: \"A call to action that makes room for what comes next.\",\n  },\n  {\n    id: \"floating-deck\",\n    src: \"/demo/gallery/floating-deck.png\",\n    alt: \"Floating Deck experiment\",\n    width: 658,\n    height: 439,\n    caption: \"Floating Deck\",\n    description: \"A compact home for apps, components, and notes.\",\n  },\n  {\n    id: \"impossible-checkbox\",\n    src: \"/demo/gallery/impossible-checkbox.png\",\n    alt: \"Impossible Checkbox experiment\",\n    width: 390,\n    height: 417,\n    caption: \"Impossible Checkbox\",\n    description: \"The bear still refuses to cooperate.\",\n  },\n  {\n    id: \"floating-index\",\n    src: \"/demo/gallery/floating-index.png\",\n    alt: \"Floating Index experiment\",\n    width: 487,\n    height: 342,\n    caption: \"Floating Index\",\n    description: \"A small outline that keeps your place.\",\n  },\n  {\n    id: \"appearance-control\",\n    src: \"/demo/gallery/appearance-control.png\",\n    alt: \"Appearance Control experiment\",\n    width: 581,\n    height: 459,\n    caption: \"Appearance Control\",\n    description: \"Theme choices gathered into one useful card.\",\n  },\n  {\n    id: \"focus-text\",\n    src: \"/demo/gallery/focus-text.png\",\n    alt: \"Focus Text experiment\",\n    width: 900,\n    height: 571,\n    caption: \"Focus Text\",\n    description: \"A sentence that sharpens as you reach it.\",\n  },\n]\n\nexport function ImageGalleryDemo() {\n  return <ImageGallery images={galleryImages} title=\"From the archive\" />\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}