iPhone 15 Pro
High-fidelity iPhone 15 Pro mockup with Dynamic Island and authentic Apple design. An open source TypeScript component for Next.js that integrates beautifully with Tailwind CSS and shadcn/ui.
Installation
npx shadcn@latest add https://www.shadcn.io/registry/iphone-15-pro.json
npx shadcn@latest add https://www.shadcn.io/registry/iphone-15-pro.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/iphone-15-pro.json
bunx shadcn@latest add https://www.shadcn.io/registry/iphone-15-pro.json
Features
- Free open source React component built for Next.js applications with zero licensing costs
- High-fidelity iPhone 15 Pro mockup with authentic Apple design details using modern SVG
- TypeScript-first development with comprehensive type definitions and IntelliSense support
- Tailwind CSS integration for seamless styling and automatic dark mode theme switching
- shadcn/ui compatibility following established design system patterns and conventions
- Image and video content support with proper aspect ratio handling using JavaScript
- Accurate device proportions and precise button placement matching real iPhone 15 Pro specifications
- Dynamic Island representation with authentic styling and positioning
- Hardware detail rendering including volume buttons, power button, and camera module styling
- Responsive design with customizable dimensions while maintaining device aspect ratio
- Performance optimized with clean SVG-based implementation for crisp rendering at any scale
Examples
Clean Device Mockup
With Image Content
With Video Content
API Reference
Iphone15Pro
Prop | Type | Default | Description |
---|---|---|---|
src | string | undefined | Image source to display inside the phone screen |
videoSrc | string | undefined | Video source to display inside the phone screen |
width | number | 433 | Width of the iPhone component |
height | number | 882 | Height of the iPhone component |
className | string | undefined | Additional CSS classes to apply |
The component also accepts all standard SVG props via SVGProps<SVGSVGElement>
.
Use Cases
This free open source React component is perfect for:
- Next.js portfolios - Showcase iOS applications with TypeScript integration and type safety
- App Store presentations - Display iPhone app screenshots in authentic device frames
- shadcn/ui projects - Integrate premium device mockups into your design system
- Marketing materials - Present iOS applications with professional iPhone 15 Pro mockups using Tailwind CSS
- Product demonstrations - Create compelling product demos with video content display
- Client presentations - Impress clients with high-fidelity iOS app presentations using modern JavaScript
- Design portfolios - Display iOS design work within authentic Apple device contexts
- Developer documentation - Show iOS app features within realistic device environments
Technical Details
Apple-Authentic Design
This open source component replicates genuine iPhone 15 Pro specifications:
- Exact proportions matching Apple's official device dimensions
- Dynamic Island implementation with precise positioning and styling
- Hardware button accuracy including volume rocker and power button placement
- Camera module representation with authentic design elements
- TypeScript type validation ensuring component reliability
Performance Optimizations
- Optimized SVG structure with minimal JavaScript footprint for fast loading
- Next.js compatibility with full server-side rendering and static generation support
- Efficient clip paths for seamless content integration without performance impact
- Tailwind CSS optimization for consistent theming and responsive design
Accessibility
This component includes comprehensive accessibility features:
- Semantic SVG markup with proper ARIA labels for assistive technologies
- React-compatible interaction when used in interactive Next.js applications
- Responsive design patterns that adapt to various screen sizes and orientations
- High contrast support with automatic dark mode adaptation using Tailwind CSS classes
Android
Realistic Android device mockup component for showcasing mobile apps. Perfect for React and Next.js projects with TypeScript support, Tailwind styling, and seamless shadcn/ui integration.
Safari
Authentic Safari browser mockup featuring macOS design elements and customizable URL display. A JavaScript component that works seamlessly in React and Next.js projects with full TypeScript support and shadcn/ui compatibility.