{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * The gallery of a product page: the picture (the file of the product's featured media, a placeholder without\n * one) and optional thumbnails below.\n */\nimport { type JSX } from \"solid-js\";\nimport { Grid, Stack } from \"../compose\";\nimport { MediaFrame } from \"../components/media-frame\";\n\nexport type ProductGalleryProps = {\n  name: string;\n  image?: string;\n  thumbs?: \"none\" | \"below\";\n};\n\nexport function ProductGallery({ name, image, thumbs = \"below\" }: ProductGalleryProps) {\n  return (\n    <Stack gap=\"4\" align=\"stretch\" data-slot=\"gallery\">\n      <MediaFrame alt={name} src={image} ratio=\"1/1\" />\n      {((thumbs as string) === \"below\") ? (\n        <Grid cols=\"3\" class=\"gap-4\" data-slot=\"thumbs\">\n          <MediaFrame alt={name} src={image} ratio=\"1/1\" class=\"ring-2 ring-foreground\" />\n          <MediaFrame alt={name} ratio=\"1/1\" />\n          <MediaFrame alt={name} ratio=\"1/1\" />\n        </Grid>\n      ) : null}\n    </Stack>\n  );\n}\n",
      "path": "components/product-gallery.tsx",
      "target": "components/product-gallery.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "product-gallery",
  "registryDependencies": [
    "compose",
    "media-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Product Gallery",
  "type": "registry:component"
}
