Skip to main content

MediaBlockHeroYouTubeBlock

Overview

MediaBlockHeroYouTubeBlock represents a hero block that features YouTube video content alongside text, media, and call-to-action elements. This block type is used to create engaging and dynamic page sections.

Attributes

id

type: string

A unique identifier for the hero block.

type

type: literal = 'mediaBlockHeroYouTube'

Discriminant for this block type.

ariaLabel

type: string (optional)

Accessibility label for the hero 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 hero block, with the following structure:

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

subcopy

type: object (optional)

The subcopy content for the hero block, 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: MediaBlockVariants (optional)

Defines the layout and visual variants for the hero block.

textColor

type: TextColorOptions (optional)

The text color for the hero block.

mediaPrimary

type: Media (optional)

The primary media asset for the hero block, such as an image or additional video.

mediaSecondary

type: Media (optional)

The secondary media asset for the hero block.

youtube

type: YouTubeVideo (optional)

The YouTube video associated with this hero block.