{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "zoom-lightbox-products-demo",
  "type": "registry:block",
  "title": "Zoom Lightbox: Product Images",
  "description": "Image Lightbox Gallery example, Product Images: A storefront grid with portrait tiles and rounder corners. Captions carry the name, colorway and price. 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-products-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/zoom-lightbox.json"
  ],
  "files": [
    {
      "path": "components/zoom-lightbox-products-demo.tsx",
      "type": "registry:component",
      "content": "import { ZoomLightbox, ZoomLightboxItem } from \"@/components/ui/zoom-lightbox\";\n\nconst products = [\n  { id: \"1542291026-7eec264c27ff\", width: 5472, height: 3648, name: \"Ember Runner\", color: \"Crimson\", price: \"$140\", tint: \"bg-red-600\" },\n  { id: \"1606107557195-0e29a4b5b4aa\", width: 2400, height: 3000, name: \"Volt Trainer\", color: \"Lime / Black\", price: \"$120\", tint: \"bg-lime-400\" },\n  { id: \"1595950653106-6c9ebd614d3a\", width: 4000, height: 6000, name: \"Pastel Court\", color: \"Lilac / Mint\", price: \"$110\", tint: \"bg-violet-300\" },\n  { id: \"1600185365483-26d7a4cc7519\", width: 5000, height: 4000, name: \"Coral Air\", color: \"Sail / Coral\", price: \"$150\", tint: \"bg-zinc-300\" },\n  { id: \"1549298916-b41d501d3772\", width: 5595, height: 3997, name: \"Desert Low\", color: \"Wheat\", price: \"$130\", tint: \"bg-amber-500\" },\n  { id: \"1608231387042-66d1773070a5\", width: 9248, height: 6936, name: \"Night Court\", color: \"White / Black\", price: \"$95\", tint: \"bg-zinc-900\" },\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 ZoomLightboxProductsDemo() {\n  return (\n    <section className=\"w-full max-w-3xl\">\n      <div className=\"mb-6 flex items-end justify-between gap-4\">\n        <div>\n          <p className=\"font-mono text-xs uppercase tracking-widest text-zinc-500\">Spring drop</p>\n          <h3 className=\"mt-2 text-2xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-50\">\n            New arrivals\n          </h3>\n        </div>\n        <p className=\"font-mono text-xs text-zinc-500 tabular-nums\">{products.length} styles</p>\n      </div>\n\n      <ZoomLightbox className=\"grid grid-cols-2 gap-x-4 gap-y-6 sm:grid-cols-3\">\n        {products.map((product) => (\n          <div key={product.id}>\n            <ZoomLightboxItem\n              src={image(product.id, 2000)}\n              thumbnail={image(product.id, 600)}\n              width={product.width}\n              height={product.height}\n              alt={`${product.name} sneaker in ${product.color}`}\n              caption={`${product.name} · ${product.color} · ${product.price}`}\n              className=\"aspect-[4/5] w-full rounded-2xl\"\n            />\n            <div className=\"mt-3 flex items-start justify-between gap-3 px-0.5\">\n              <div className=\"min-w-0\">\n                <p className=\"truncate text-sm font-medium text-zinc-900 dark:text-zinc-50\">\n                  {product.name}\n                </p>\n                <p className=\"mt-0.5 flex items-center gap-1.5 text-xs text-zinc-500\">\n                  <span\n                    aria-hidden\n                    className={`size-2 rounded-full ring-1 ring-black/10 dark:ring-white/20 ${product.tint}`}\n                  />\n                  {product.color}\n                </p>\n              </div>\n              <p className=\"text-sm text-zinc-900 tabular-nums dark:text-zinc-50\">{product.price}</p>\n            </div>\n          </div>\n        ))}\n      </ZoomLightbox>\n    </section>\n  );\n}\n"
    }
  ]
}