Installation
Usage
Props
Source URL of the image to display in the iPhone screen
Source URL of the video to display (takes precedence over src)
Additional CSS classes applied to the wrapper div
Inline styles applied to the wrapper div
Examples
With Image
With Video
Features
- Realistic iPhone frame with accurate proportions
- Support for images and videos
- Auto-playing, looping videos
- Maintains 433:882 aspect ratio
- Rounded corners matching iPhone design
- Dynamic island representation
- Dark mode support
Notes
- Component enforces 433:882 aspect ratio
- Size controlled by wrapper div, not props
- Screen area masked only when media is provided
- Videos render as DOM overlay for iOS compatibility
- Without media, only the frame is rendered
- Accepts all standard HTMLDivElement props