Getting Started
Components
Device Mocks
Special Effects
Animations
Text Animations
Buttons
import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro";
export function Iphone15ProDemo() {
return (
<div className="relative">
<Iphone15Pro className="size-full" />
</div>
);
}
Installation
pnpm dlx shadcn@latest add @magicui/iphone-15-pro
Examples
With Image
import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro";
export function Iphone15ProDemo() {
return (
<div className="relative">
<Iphone15Pro
className="size-full"
src="https://via.placeholder.com/430x880"
/>
</div>
);
}
With Video
import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro";
export function Iphone15ProDemo() {
return (
<div className="relative">
<Iphone15Pro
className="size-full"
videoSrc="https://videos.pexels.com/video-files/8946986/8946986-uhd_1440_2732_25fps.mp4"
/>
</div>
);
}
Usage
import { Iphone15Pro } from "@/components/magicui/iphone-15-pro";
<Iphone15Pro />
Props
Prop | Type | Default | Description |
---|---|---|---|
width | number | 433 | The width of the iPhone 15 Pro window |
height | number | 882 | The height of the iPhone 15 Pro window |
src | string | - | The source of the image to display |
videoSrc | string | - | The source of the video to display |
The Iphone15Pro
component also accepts all properties of the SVGElement
type.
Limited Time Offer
Ship Faster with Magic UI ProMagic UI Pro
Stop building from scratch.
Get 8 production-ready templates and 50+ premium components that your users will love.
✓
Next.js 15 + TypeScript ready✓
Copy, paste, customize in minutes✓
Save 100+ hours of development