Skip to main content

HeroCard

HeroCard — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

HeroCard — Prism component.

Accessibility

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

Import

const { HeroCard } = window.PrismDesignSystem_39d121;

Props

PropTypeRequiredDescription
sectionNumberReact.ReactNodee.g. "Section 03" or "03".
titleReact.ReactNode
descriptionReact.ReactNode
leadoutReact.ReactNodeLead-out label; an arrow is appended. Default "Continue".
imagestringBackground 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