Ali Imam

iPhone Duo Mockup

Component

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>
  );
}

More by Ali Imam

View all
  • Liquid Glass Button

    Liquid Glass Button

    7.1K
  • Shader Animation

    Shader Animation

    3.9K
  • WebGL Shader

    WebGL Shader

    2.7K
  • Shader Lines

    Shader Lines

    2.4K
  • Shiny Button

    Shiny Button

    2.4K
  • GLSL Hills

    GLSL Hills

    2.2K
  • Canvas

    Canvas

    1.8K
  • Gallery

    Gallery

    1.6K