CardImageWithCaption
Figure card with a 4:5 image and optional title and caption text. Use it for editorial galleries, team photos, and captioned product imagery.
Best for
Import
import { CardImageWithCaption } from "@enadhq/enad-react-sdk/client/storefront"When to use it
Use CardImageWithCaption when an image needs a structured title and caption below it in a card format. It fits editorial galleries, team member profiles, process step illustrations, and any grid where images need consistent captioning.
For standalone editorial images without card framing, use ImageBlock. For images with overlay text and navigation intent, use LinkBlock or LinkBlockSmall.
Composition notes
CardImageWithCaption is a minimal figure component:
imagerenders at a fixed 4:5 aspect ratio withobject-cover.titleappears as bold text below the image.captionappears as smaller muted text below the title.- If no image is provided, a placeholder renders in its place.
- The figcaption only renders if
titleorcaptionis present.
Behavior and theming guidance
The image always renders at 4:5 portrait aspect, which keeps grids of these cards visually consistent regardless of source image dimensions. Control the card width through the parent container or className.
This is one of the simplest storefront blocks. It does not have variants, color themes, or interactive states. Its value is consistent, captioned image presentation in grids.
Examples
Live examples you can edit directly in the sandbox.
Captioned editorial image
A simple figure card for editorial galleries, team member profiles, and any context where an image needs a title and supporting caption.
Component Sets
Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| image | string | — | No description yet. |
| title | string | — | No description yet. |
| caption | string | — | No description yet. |
| className | string | — | No description yet. |