About
A device mockup frame component that wraps any content inside a realistic iPhone frame image, with props for size, orientation, side (front/back/front-and-back) and frame color, used to showcase app screenshots.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds iPhone Duo Mockup to your project and fits it to your theme.
Code
How iPhone Duo Mockup is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { IPhoneDuo } from "@/components/ui/iphone-duo";
export default function IPhoneDuoDemo() {
return (
<div className="flex items-center justify-center p-8">
<IPhoneDuo size="xl" side="back" orientation="portrait" color="night-sky">
<div className="flex h-full items-center justify-center bg-background">
<p className="text-2xl font-medium text-foreground">Back View</p>
</div>
</IPhoneDuo>
</div>
);
}








