Skip to main content

PageHero

A hero / page-header banner with eyebrow, title, description, actions and optional media. @startingPoint section="Layout" subtitle="Hero / page-header banner with optional media & tint" viewport="1024x360"

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

When to use​

A hero / page-header banner with eyebrow, title, description, actions and optional media.

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/page-hero
import { PageHero } from '@/components/prism/PageHero';

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

Props​

PropTypeRequiredDescription
eyebrowReact.ReactNode—Small overline above the title (optionally with a leading icon node).
titleReact.ReactNode—
descriptionReact.ReactNode—
actionsReact.ReactNode—Action nodes (Buttons) rendered in a row below the copy.
mediaReact.ReactNode—Media node shown beside the copy (above it when align="center").
decorationReact.ReactNode—Art drawn behind the content (gradient, shapes, photo): fills the hero, clipped, aria-hidden, no pointer events.
align"start" | "center"—
variant"card" | "band"—"card" (default): a bordered card. "band": an edge-to-edge marketing band, content held to --hero-max, showcase title.
titleSize"showcase" | "hero" | "display"—Title size: "showcase" (56–96px, the band's default), "hero" or "display" (the card's default).
tone"default" | "primary" | "secondary" | "tertiary" | "accent"—Tints the whole band: section accents or the brand accent.
childrenReact.ReactNode—
classNamestring—