Installation
Usage
Props
URL to display in the Safari address bar
Source URL of the image to display in the browser window
Source URL of the video to display (takes precedence over imageSrc)
Display mode - ‘default’ shows full browser chrome, ‘simple’ shows minimal UI
Additional CSS classes applied to the wrapper div
Inline styles applied to the wrapper div
Examples
With Image
With Video
Simple Mode
Notes
- Component maintains a 1203:753 aspect ratio
- Size is controlled by the wrapper div, not props
- Screen area is masked only when media is provided
- Videos render as DOM overlay for iOS compatibility
- Accepts all standard HTMLDivElement props