Skip to main content

Media Hero

A MediaHero displays an image or video with optional text, buttons and links positioned as an overlay.

Example

Mock Media Hero

New

Phone

Our most powerful cameras yet. Ultrafast chips. And USB-C.

Variants

Use theicon above to preview
VariantDescriptionValues
MediaHero.desktopOrientation
  • top
  • bottom
  • left
  • End
  • center
  • topLeft
  • topEnd
  • bottomLeft
  • bottomEnd
MediaHero.mobileOrientation
  • top
  • bottom
  • left
  • right
  • center
  • topLeft
  • topRight
  • bottomLeft
  • bottomRight
MediaHero.paddingTop
  • regular
  • extra
MediaHero.paddingBottom
  • regular
  • extra
MediaHero.height
  • default
  • hero
  • banner
MediaHeroTextBlock.position
  • left
  • right
  • center
MediaHeroCTAs.direction
  • rowStart
  • rowEnd
  • rowCenter
  • columnStart
  • columnEnd
  • columnCenter
MediaHeroLinks.direction
  • rowStart
  • rowEnd
  • rowCenter
  • columnStart
  • columnEnd
  • columnCenter

Customization

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 of 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>