Staaarter

App Showcase Hero

Split hero with a feature checklist and dual store CTAs beside a phone-frame screenshot mockup. Perfect for mobile app landing pages leading with a download call to action.

By Staaarter Team
Hero
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
badge{ label: string }noneSmall pill above the heading; only rendered when set.
headingReactNodenoneMain headline.
descriptionstringundefinedSupporting subtext below the heading.
checklistChecklistItem[][]Checkmark list below the description.
buttonsButtonItem[][]CTA buttons below the checklist, e.g. store download links.
screenshotMediaSlotImageundefinedImage inside the phone frame; falls back to a placeholder when omitted.
classNamestringnoneExtra 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.