Skip to content

ProductGallery

The ProductGallery container displays a gallery of product images on the product details page.

ProductGallery configurations

The ProductGallery container provides the following configuration options:

controlsstringNoType of controls for navigation. Options are thumbnailsRow, thumbnailsColumn, dots, or null. Defaults to dots.
loopbooleanNoWhether to loop the images in the carousel. Defaults to true.
peakbooleanNoWhether to enable the peak feature. Defaults to false.
gapstringNoGap size between images. Options are small, medium, large, or null. Defaults to null.
arrowsbooleanNoWhether to display navigation arrows. Defaults to true.
imageParamsobjectNoParameters for resolving image URLs.
thumbnailParamsobjectNoParameters for resolving thumbnail URLs.
zoomobject or booleanNoConfiguration for the zoom feature. If an object, it can have a closeButton property to show a close button. Defaults to false.

Example

The following example demonstrates how to configure the ProductGallery container:

return productRenderer.render(ProductDetails, {
controls: 'thumbnailsRow',
loop: true,
peak: false,
gap: 'medium',
arrows: true,
imageParams: {
width: 800,
height: 800,
},
thumbnailParams: {
width: 150,
height: 150,
},
zoom: {
closeButton: true,
},
});