Ali Imam

iMac Device Mockup

Heroes

About

A responsive Apple iMac device frame that renders any content (an app screen, image, video, or iframe) inside the screen area, for showcasing product demos and website previews.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds iMac Device Mockup to your project and fits it to your theme.

Code

How iMac Device Mockup is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import IMac from "@/components/ui/imac";

export default function IMacDemo() {
  return (
    <div className="flex min-h-[32rem] w-full items-center justify-center bg-background p-8">
      <IMac size="lg" color="blue">
        <img
          src="https://cdn.21st.dev/assets/localized/8e3dbc28350f201450dc7eab5b544524dd01f513d6c2454b5e260645af4b25c2.jpg"
          alt="App screen"
          className="h-full w-full object-cover"
        />
      </IMac>
    </div>
  );
}

More by Ali Imam

View all
  • Liquid Glass Button

    Liquid Glass Button

    6.7K
  • Shader Animation

    Shader Animation

    3.7K
  • WebGL Shader

    WebGL Shader

    2.6K
  • Shader Lines

    Shader Lines

    2.3K
  • Shiny Button

    Shiny Button

    2.2K
  • GLSL Hills

    GLSL Hills

    2.1K
  • Canvas

    Canvas

    1.8K
  • Gallery

    Gallery

    1.5K

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • SaaS Template

    SaaS Template

    2.5K
  • Hero

    Hero

    1.3K
  • Editorial Collage Hero

    Editorial Collage Hero

    454
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    295
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    960
  • HeroSectionWithGradient

    HeroSectionWithGradient

    343
  • Aero Hero-3

    Aero Hero-3

    572