shadcn.io is not affiliated with official shadcn/ui
Phone Frame Mockup Hero Block for React
A centred showcase hero for a mobile app on solid rails: store links with a Shine Button, a phone showing the app between two cards, fading out over a ruled band of three stats.
Installation
Overview
A centred showcase hero for a mobile app, for React with Base UI, shown here for Larkspur, a deploy-monitoring app. An announcement link, a headline and a sentence sit above the two store links: the App Store as a Shine Button and Google Play as an outline Button, both within the first 400 px. Below them a phone frame with a notch and a home bar shows the app on its screen (an alert with one-tap actions, the services' health and a requests sparkline), between two greyscale cards on desktop, the alert and the deploy list. The stage runs on below the buttons and the phone fades out at its foot, over a ruled band of three stats with + marks on its corners. The hero opens on the page's top rule between the same side rails as the pricing blocks. It's built from Announcement, Badge, Status, Guides, Shine Button, Button and Aspect Ratio, with CSS transitions for the entrance and your theme's tokens for every colour. For mobile app landing pages, fintech and health app launches, and any product page where the app stores are where visitors should go next.
FAQ
How do I put a screenshot of my app in the phone?
The screen is an Aspect Ratio of 9 / 19.5, the shape of most phone screenshots, holding a drawing of the app in markup (edit SERVICES and TABS to make it yours). Replace the drawing with an img of your screenshot (absolute inset-0 size-full object-cover); the screen's overflow-hidden and rounded corners clip it to the phone's shape. The stage is decorative (aria-hidden and inert): once it shows your real app, take those off and give the image an alt that says what the screen shows.
How do I link the store buttons to my listings?
Both are links (href="#"): point them at your App Store and Google Play pages. Lucide has no store logos, so the buttons use its Apple and Play icons; for a live listing, use the badges each store provides, as both ask in their marketing guidelines.
Each button renders the link it's given with render, with nativeButton={false}.
How do I change what sits beside the phone, or how far it is cropped?
The two cards are the blocks of markup after the phone in the stage, hidden below lg: edit DEPLOYS and the alert text, or remove them for the phone alone. The stage's height (h-72, md:h-[26rem]) sets how much of the phone shows, and the mask on the phone (black_55%) sets where it starts to fade; a shorter stage crops more, and the stats band always meets the foot of the stage.
Is it accessible to screen reader and keyboard users?
The headline is the page's h1. Each store link is named by its whole label, so it reads "Download on the App Store" and "Get it on Google Play" (the first words are visually hidden), and its icon is hidden. The stage is hidden from assistive tech and can't take focus. The stats are a description list, each label read with its number. With reduced motion nothing fades or rises.
How does it fit on a phone?
The headline steps down from text-6xl to text-4xl, the two store links sit side by side and wrap when they don't fit, and both end on the first screen. The stage becomes 288 px tall with the phone alone, cropped and faded, and the two cards are dropped. The three stats stay in one row with their hairlines down to a 320 px screen.
When should I use this hero instead of a split phone hero?
Use it when the app is the product and an install is the goal: the store links come first and the phone rises under them. When you have more to say beside the app (features, a sign-up form, a desktop product), a split layout such as Split Phone Frame keeps the copy and the phone side by side.
Related
- Pro
Split Phone Frame Hero
Mobile and mediaA split hero for a mobile app: copy, store links and social proof beside a phone frame that slides out of a hairline frame, cut off at its foot.
- Pro
Split Layout Phone Frame Mockup Hero
Mobile and mediaA reverse split hero for a mobile app: two phones rise from the foot of a tinted panel on the start side, with a Shine Button to the App Store, an outline link to Google Play and a rider count at the end.
- Pro
Phone Trio App Download Hero
Mobile and mediaA centered showcase hero for a mobile app: a headline, a Shine Button to the App Store with Google Play beside it and a proof line over a hairline band of three phones that run off the bottom.
- Pro
Concentric Rings Hero
BackdropsA compact, centred hero for a design tool on solid rails: concentric rings breathe behind a headline, a Shine Button and an outline button, over a ruled band of three stats.
- Pro
Metric Tiles Hero
Stats and live dataA compact left-aligned hero for an edge network with a live status pill, a Shine Button and an outline button at the end of the row, and four metric tiles below, each a ruled cell with a trend.
- Pro
Split Layout Overlapping Browser Frames Hero
Product windowsA split hero for a design tool: a headline, a Shine Button, a second action and three short feature ticks beside two overlapping browser windows that run off the edge of the column: a projects list behind an editor.