Skip to main content

Interface: ProductGalleryProps

Defined in: components/ProductGallery.tsx:13

Properties

className?

optional className?: string

Defined in: components/ProductGallery.tsx:31

Extra CSS class applied to the root element.


enableLightbox?

optional enableLightbox?: boolean

Defined in: components/ProductGallery.tsx:28

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


enableZoom?

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

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

optional showThumbnails?: boolean

Defined in: components/ProductGallery.tsx:22

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