Skip to main content

HeroCard

A large section-navigation hero card over a tinted image. @startingPoint section="Cards" subtitle="Hero navigation card with tinted image & lead-out" viewport="420x240"

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

When to use​

A large section-navigation hero card over a tinted image.

Accessibility​

When the whole card is actionable, expose a single accessible name and make it reachable with Tab + Enter. Decorative imagery uses empty alt.

Install and import​

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

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

Props​

PropTypeRequiredDescription
sectionNumberReact.ReactNode—e.g. "Section 03" or "03".
titleReact.ReactNode—
descriptionReact.ReactNode—
leadoutReact.ReactNode—Lead-out label; an arrow is appended. Default "Continue".
imagestring—Background image URL; a tinted overlay keeps text legible.
tint"dark" | "brand"—Overlay tint when shown. "dark" (neutral) or "brand".
onPress(e: React.SyntheticEvent) => void—
hrefstring—
classNamestring—