Skip to main content

Interface: ProductGalleryProps

Defined in: components/ProductGallery.tsx:16

Properties​

className?​

optional className?: string

Defined in: components/ProductGallery.tsx:34

Extra CSS class applied to the root element.


enableLightbox?​

optional enableLightbox?: boolean

Defined in: components/ProductGallery.tsx:31

Enable fullscreen lightbox when clicking the main image. Defaults to true.


enableZoom?​

optional enableZoom?: 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?​

optional labels?: 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?​

optional showThumbnails?: boolean

Defined in: components/ProductGallery.tsx:25

Show image thumbnails below the main image. Defaults to true.