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 barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
eyebrow | React.ReactNode | — | Small overline above the title (optionally with a leading icon node). |
title | React.ReactNode | — | |
description | React.ReactNode | — | |
actions | React.ReactNode | — | Action nodes (Buttons) rendered in a row below the copy. |
media | React.ReactNode | — | Media node shown beside the copy (above it when align="center"). |
decoration | React.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. |
children | React.ReactNode | — | |
className | string | — |