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 barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
sectionNumber | React.ReactNode | — | e.g. "Section 03" or "03". |
title | React.ReactNode | — | |
description | React.ReactNode | — | |
leadout | React.ReactNode | — | Lead-out label; an arrow is appended. Default "Continue". |
image | string | — | 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 | — | |
href | string | — | |
className | string | — |