Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/app-showcase-hero.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/hero/hero5.tsx instead.
Usage
The file also exports hero5Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Hero5, hero5Demo } from "@/components/blocks/hero/hero5"; export default function Page() { return <Hero5 {...hero5Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| badge | { label: string } | none | Small pill above the heading; only rendered when set. |
| heading | ReactNode | none | Main headline. |
| description | string | undefined | Supporting subtext below the heading. |
| checklist | ChecklistItem[] | [] | Checkmark list below the description. |
| buttons | ButtonItem[] | [] | CTA buttons below the checklist, e.g. store download links. |
| screenshot | MediaSlotImage | undefined | Image inside the phone frame; falls back to a placeholder when omitted. |
| className | string | none | Extra classes for the outer section element. |
Types
type ChecklistItem = { text: string }; type ButtonItem = { label: string; href?: string; variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive"; };
Behavior notes
- The phone frame (notch, home indicator, rounded chrome) is fixed decorative markup, not derived from any prop; only the screen content changes via the screenshot prop.
- Badge, checklist, and buttons are each independently optional.
- Both CTA buttons are inert placeholders (href defaults to "#" in the demo) representing store links with no real navigation wired up.
More Hero Blocks
View all →Metrics Counter Hero
Centered hero with a badge pill, dual CTAs, avatar social proof, and stat counters that animate up when scrolled into view.
Split Announcement Hero
Split hero with an image on one side and a short list of dated announcement links on the other.
Dismissible Banner Hero
Centered hero with a dismissible top announcement bar, dual CTAs, trust text, and a wide media panel below.
Layered Screens Hero
Split hero with a feature checklist on one side and two overlapping browser-frame screenshots on the other.