Theme Playground

Storefront

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

editorial galleriesteam photoscaptioned imagery

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:

  • image renders at a fixed 4:5 aspect ratio with object-cover.
  • title appears as bold text below the image.
  • caption appears as smaller muted text below the title.
  • If no image is provided, a placeholder renders in its place.
  • The figcaption only renders if title or caption is 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.

1 example

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

PropTypeDefaultDescription
imagestring
No description yet.
titlestring
No description yet.
captionstring
No description yet.
classNamestring
No description yet.