React library

Gallery component

Configure layouts, limits, and server-provided gallery data.

<Gallery
  gallery={gallery}
  layout="Masonry"
  limit={24}
  className="product-gallery"
/>

Supported layouts:

LayoutBest for
GridPredictable cards and equal columns
MasonryEditorial image collections with varied heights
JustifiedRows with balanced visual weight
CarouselFocused sequential browsing
SingleOne image at a time

The component includes lightbox behavior, keyboard navigation, image-view tracking, download tracking, and responsive layout primitives. Use className and your application theme for surrounding layout and presentation.

Pass normalized gallery data through gallery when your server already fetched it. Do not fetch each image through the API; image URLs in the gallery data are delivered by the media plane.