Interface: ProductGalleryProps
Defined in: components/ProductGallery.tsx:16
Properties
className?
optionalclassName?:string
Defined in: components/ProductGallery.tsx:34
Extra CSS class applied to the root element.
enableLightbox?
optionalenableLightbox?:boolean
Defined in: components/ProductGallery.tsx:31
Enable fullscreen lightbox when clicking the main image. Defaults to true.
enableZoom?
optionalenableZoom?:boolean
Defined in: components/ProductGallery.tsx:28
Enable cursor-zoom-in hint on the main image. Defaults to true.
images
images:
string[]
Defined in: components/ProductGallery.tsx:22
Array of image URLs to display.
Obtain from: product.media?.images?.items?.[0]?.imageVariants?.map(v => v.url)
Component is in skeleton/loading state when this is an empty array.
labels?
optionallabels?:Record<string,string>
Defined in: components/ProductGallery.tsx:38
Translated labels keyed by the slugs used inside the component (see
getLabel calls). Missing keys fall back to the English defaults.
showThumbnails?
optionalshowThumbnails?:boolean
Defined in: components/ProductGallery.tsx:25
Show image thumbnails below the main image. Defaults to true.