Skip to main content

MediaHero

A full-bleed hero with image/video background — bare, boxed, bottom nav-cards, or an animated carousel. @startingPoint section="Layout" subtitle="Full-bleed image/video hero — text, box, cards or carousel" viewport="1200x520"

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A full-bleed hero with image/video background — bare, boxed, bottom nav-cards, or an animated carousel.

Accessibility​

Landmark structure (header/nav/footer) with skip-to-content support. Collapsible navigation keeps an accessible name when collapsed.

Install and import​

npx shadcn@latest add @prism/media-hero
import { MediaHero } from '@/components/prism/MediaHero';

In a no-build prototype, read it from the bundle instead: const { MediaHero } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
variant"bare" | "box" | "cards" | "carousel"—Layout style.
mediaHeroMedia—Background media (all variants except carousel).
eyebrowReact.ReactNode—
titleReact.ReactNode—
textReact.ReactNode—
actionsReact.ReactNode—Buttons/links row.
box"translucent" | "solid" | "light"—Panel style for variant="box".
cardsHeroNavCard[]—Bottom navigation cards for variant="cards".
slidesHeroSlide[]—Slides for variant="carousel".
size"sm" | "md" | "lg" | "full"—Hero height.
align"center" | "end"—Vertical placement of content.
scrim"soft" | "default" | "strong"—Scrim strength for legibility.
autoPlayboolean—Auto-advance the carousel (paused under prefers-reduced-motion).
intervalnumber—Carousel interval in ms.
classNamestring—