{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "zoom-lightbox-demo",
  "type": "registry:block",
  "title": "Zoom Lightbox: Gallery",
  "description": "Image Lightbox Gallery example, Gallery: A photo grid. Tap a photo, swipe or use the arrow keys to page, then drag it down and it lands back in its tile. A take on the lightbox (image viewer) and image gallery (photo gallery). Fits portfolio, features, shop and team sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "portfolio",
    "features",
    "shop",
    "team",
    "lightbox",
    "image-gallery",
    "modal",
    "gallery",
    "gesture",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/zoom-lightbox#zoom-lightbox-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/zoom-lightbox.json"
  ],
  "files": [
    {
      "path": "components/zoom-lightbox-demo.tsx",
      "type": "registry:component",
      "content": "import { ZoomLightbox, ZoomLightboxItem } from \"@/components/ui/zoom-lightbox\";\n\nconst photos = [\n  { id: \"1506905925346-21bda4d32df4\", width: 4878, height: 3252, alt: \"Snowy peaks rising out of a sea of clouds at sunrise\", caption: \"Above the cloud line, first light\" },\n  { id: \"1433086966358-54859d0ed716\", width: 4000, height: 6000, alt: \"A tall waterfall under a stone footbridge in a green gorge\", caption: \"The falls, after a week of rain\" },\n  { id: \"1493246507139-91e8fad9978e\", width: 5472, height: 3648, alt: \"Jagged mountains reflected in a turquoise lake at dusk\", caption: \"Still water, last light\" },\n  { id: \"1500530855697-b586d89ba3ee\", width: 3648, height: 5472, alt: \"A two-lane road running through red desert cliffs\", caption: \"Somewhere past the last gas station\" },\n  { id: \"1519681393784-d120267933ba\", width: 4096, height: 2733, alt: \"The Milky Way above snow-covered mountains\", caption: \"Twenty-second exposure, no moon\" },\n  { id: \"1505144808419-1957a94ca61e\", width: 3070, height: 5464, alt: \"Aerial view of a wave breaking onto dark sand\", caption: \"From above the tide line\" },\n  { id: \"1490750967868-88aa4486c946\", width: 7952, height: 5304, alt: \"Orange poppies against a blue sky\", caption: \"Poppies along the trail\" },\n  { id: \"1501785888041-af3ef285b470\", width: 5979, height: 3986, alt: \"A rowing boat on a clear green alpine lake\", caption: \"Morning row across the lake\" },\n  { id: \"1502082553048-f009c37129b9\", width: 3741, height: 2494, alt: \"A lone broad tree in a grassy field\", caption: \"The tree everyone stops for\" },\n];\n\nconst image = (id: string, width: number) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=max&q=80&w=${width}`;\n\nexport function ZoomLightboxDemo() {\n  return (\n    <div className=\"w-full max-w-sm\">\n      <div className=\"mb-3 flex items-baseline justify-between px-0.5\">\n        <p className=\"text-sm font-medium text-zinc-900 dark:text-zinc-50\">Recents</p>\n        <p className=\"font-mono text-xs text-zinc-500 tabular-nums\">{photos.length} photos</p>\n      </div>\n      <ZoomLightbox className=\"grid grid-cols-3 gap-1\">\n        {photos.map((photo) => (\n          <ZoomLightboxItem\n            key={photo.id}\n            src={image(photo.id, 2000)}\n            thumbnail={image(photo.id, 400)}\n            width={photo.width}\n            height={photo.height}\n            alt={photo.alt}\n            caption={photo.caption}\n            className=\"aspect-square rounded-md\"\n          />\n        ))}\n      </ZoomLightbox>\n      <p className=\"mt-4 text-center font-mono text-xs text-zinc-500\">\n        Tap a photo. Drag it down to put it back.\n      </p>\n    </div>\n  );\n}\n"
    }
  ]
}