Mockups

iPhone Frame

new

A modern iPhone drawn in CSS, with the screen left to you.

9:41
MC

Good morning

Mia Chen

Total balance

$12,480.32

+2.4%this week

Send
Request
Top up
Cards

Recent activity

See all
SP

Studio Pro

Subscription

−$45.00
LO

Lena Ortiz

Dinner split

+$38.50
CC

Corner Café

Coffee

−$6.20

Installation

npx shadcn@latest add @blank/iphone-frame

Usage

import { IPhoneFrame } from "@/components/ui/iphone-frame"
<IPhoneFrame className="w-72" src="/app-screenshot.png" alt="Wallet app" />

Pass a screenshot through src, or any React tree as children. Size the frame with a width class only: the height follows from the device's real aspect ratio, and the rim, bezel, corner radii and Dynamic Island are measured in container units, so the proportions hold from a thumbnail to a hero.

Examples

Sizes

Screen content can use the same container units. Measured in cqw, it scales with the frame like a screenshot would, instead of reflowing.

Tuesday, October 13

9:41

Build #1284 is liveProduction deploy finished in 42s

Tuesday, October 13

9:41

Build #1284 is liveProduction deploy finished in 42s

Tuesday, October 13

9:41

Build #1284 is liveProduction deploy finished in 42s