Interface: ProductGalleryProps
Defined in: components/ProductGallery.tsx:13
Properties
className?
optionalclassName?:string
Defined in: components/ProductGallery.tsx:31
Extra CSS class applied to the root element.
enableLightbox?
optionalenableLightbox?:boolean
Defined in: components/ProductGallery.tsx:28
Enable fullscreen lightbox when clicking the main image. Defaults to true.
enableZoom?
optionalenableZoom?:boolean
Defined in: components/ProductGallery.tsx:25
Enable cursor-zoom-in hint on the main image. Defaults to true.
images
images:
string[]
Defined in: components/ProductGallery.tsx:19
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:35
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:22
Show image thumbnails below the main image. Defaults to true.