Phone
Free Mockups React component — PhoneMockupCard. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.
iPhone 15 Pro frame with Dynamic Island and a full-screen preview slot. Pass variant for purple, orange, white, titanium, or cherry finishes. Use visibleRatio to crop from the top, and showDynamicIsland to toggle the island and camera.
Preview
Setup
How to use
Free for personal and commercial use. No UI attribution required. Include the MIT copyright notice when copying component source into your project. Read the MIT license.
- 1
Run in your terminal:
$npm install clsx tailwind-merge lucide-react - 2
Copy
lib/cn.tsbelow. Skip if you already havecn(). - 3
Copy the code below and create
components/mockups/phone-mockup-card.tsxin your project. - 4
Import and render:
Exampleimport { PhoneMockupCard } from "@/components/mockups/phone-mockup-card";
lib/cn.ts
import { cn } from '@/lib/cn';// Full source is available in the repository checkout.
components/mockups/phone-mockup-card.tsx
// Full source: components/components/mockups/phone-mockup-card.tsx// The Cloudflare worker does not expose the source tree at request time.