Skip to main content

Media Block Hero

A MediaBlockHero displays an image or video on one side, with optional text, buttons and links on the other.

Example

lorem ipsum dolor sit amet

NEW!

lorem ipsum dolor

Voluptate velit esse eu fugiat nulla pariatur. Only $10.

Variants

Use theicon above to preview
VariantDescriptionValues
MediaBlockHero.desktopOrientation
  • top
  • bottom
  • left
  • right
  • center
  • topLeft
  • topRight
  • bottomLeft
  • bottomRight
MediaBlockHero.mobileOrientation
  • top
  • bottom
  • left
  • right
  • center
  • topLeft
  • topRight
  • bottomLeft
  • bottomRight
MediaBlockHero.paddingTop
  • regular
  • extra
MediaBlockHero.paddingBottom
  • regular
  • extra
MediaBlockHero.height
  • default
  • hero
  • banner
MediaBlockHeroTextBlock.position
  • left
  • right
  • center
MediaBlockHeroCTAs.direction
  • rowStart
  • rowEnd
  • rowCenter
  • columnStart
  • columnEnd
  • columnCenter
MediaBlockHeroLinks.direction
  • rowStart
  • rowEnd
  • rowCenter
  • columnStart
  • columnEnd
  • columnCenter
MediaBlockHeroLinks.imageLinkDirection
  • rowStart
  • rowEnd
  • rowCenter
  • columnStart
  • columnEnd
  • columnCenter

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all users, update the source code in the UI component library directly.
  • Otherwise, you can pass className overrides.

Say you wanted to make the eyebrow text italic for one particular use case:

<MediaHero>
...
<MediaHeroContent>
<MediaHeroTextBlock>
<MediaHeroEyebrow className='italic'>Eyebrow Text</MediaHeroEyebrow>
<MediaHeroHeader>HeaderText</MediaHeroHeader>
<MediaHeroSubcopy>Subcopy</MediaHeroSubcopy>
</MediaHeroTextBlock>
</MediaHeroContent>
</MediaHero>