{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The gallery of a product page: the picture (the file of the product's featured media, a placeholder without one) and optional thumbnails below.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/product-gallery.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// ProductGalleryProps are the props of ProductGallery; the values are the JSON shapes of the TypeScript props.\ntype ProductGalleryProps struct {\n\tName any `json:\"name\"`\n\tImage any `json:\"image\"`\n\tThumbs any `json:\"thumbs\"`\n}\n\n// The gallery of a product page: the picture (the file of the product's featured media, a placeholder without one) and optional thumbnails below.\ntempl ProductGallery(p ProductGalleryProps) {\n\t{{ vName := p.Name }}\n\t{{ vImage := p.Image }}\n\t{{ vThumbs := uiutils.Def(p.Thumbs, \"below\") }}\n\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"gallery\")}}) {\n\t\t@MediaFrame(MediaFrameProps{Alt: vName, Src: vImage, Ratio: \"1/1\"})\n\t\tif uiutils.Eq(vThumbs, \"below\") {\n\t\t\t@compose.Grid(compose.GridProps{Cols: \"3\", BoxProps: box.BoxProps{Class: \"gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"thumbs\")}}) {\n\t\t\t\t@MediaFrame(MediaFrameProps{Alt: vName, Src: vImage, Ratio: \"1/1\", Class: uiutils.Cnv(\"ring-2 ring-foreground\")})\n\t\t\t\t@MediaFrame(MediaFrameProps{Alt: vName, Ratio: \"1/1\"})\n\t\t\t\t@MediaFrame(MediaFrameProps{Alt: vName, Ratio: \"1/1\"})\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/product-gallery.templ",
      "target": "blocks/product-gallery.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "product-gallery",
  "registryDependencies": [
    "grid",
    "kit-box",
    "media-frame",
    "stack",
    "utils"
  ],
  "runtime": "templ",
  "title": "Product Gallery",
  "type": "registry:component"
}
