ContentWithGallery
Editorial section that pairs text content with an image gallery and optional product-card content.
Best for
Import
import { ContentWithGallery } from "@enadhq/enad-react-sdk/client/storefront"When to use it
Use ContentWithGallery when a section needs editorial copy plus a supporting image gallery in one composed block. It works well for campaign storytelling and product-led content sections.
Composition notes
layout switches between image-above and side-by-side. images drives the gallery content, while productCards lets you extend the section with linked product content when the story should also sell.
The gallery itself uses a simple responsive grid, moving from two image columns into three on larger screens. In side-by-side mode the section collapses back to one column before it reaches large-screen widths, so keep the copy self-contained enough that it still reads well above the gallery.
Behavior and theming guidance
Choose side-by-side when the copy needs equal weight with the visuals. Use colorTheme to tie the whole section into the broader page palette instead of styling the text and gallery separately.
When you add productCards, treat them as a short follow-up, not a second full section. A couple of cards that continue the story usually work better than a dense product strip competing with the gallery.
Examples
Live examples you can edit directly in the sandbox.
Side-by-side editorial section
Use the side-by-side layout when the copy and gallery should share the stage on larger screens.
Slots
Component Sets
Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| images | string | [] | No description yet. |
| preheader | string | — | No description yet. |
| heading | string | — | No description yet. |
| body | string | — | No description yet. |
| productCards | string | — | No description yet. |
| layout | string | image-above | No description yet. |
| colorTheme | string | — | No description yet. |
| classNames | Partial<Record<import("@enadhq/enad-react-sdk/client/storefront/types").ContentWithGallerySlot, string>> | — | No description yet. Slot keys bodyheadingrootinnercopypreheaderimageGridimageItemproductCards |
| className | string | — | No description yet. |