Skip to main content

MediaCardBlock

Overview

MediaCardBlock represents a media-rich card that includes text, call-to-action elements, and media content. This block type is typically used for showcasing products, promotions, or informational content in a visually engaging way.

Attributes

id

type: string

A unique identifier for the media card block.

type

type: literal = 'mediaCard'

Discriminant for this block type.

ariaLabel

type: string (optional)

Accessibility label for the media card block.

eyebrowText

type: object (optional)

An optional eyebrow text object with the following structure:

  • text: string (optional)
  • format: literal = 'markdown' | 'html' (optional)

type: object (optional)

The header content for the media card, with the following structure:

  • text: string (optional)
  • format: literal = 'markdown' | 'html' (optional)

subcopy

type: object (optional)

The subcopy content for the media card, with the following structure:

  • text: string (optional)
  • format: literal = 'markdown' | 'html' (optional)

ctas

type: CtaBlock[] (optional)

A list of call-to-action elements.

type: CtaBlock[] (optional)

A list of link elements.

type: LinkItemBlock[] (optional)

A list of image-based link elements.

variants

type: Variants (optional)

Defines the layout and visual variants for the media card.

textColor

type: TextColorOptions (optional)

Specifies the text color for the media card.

media

type: Media (optional)

The media asset associated with the media card, such as an image or video.