iPhone Mockup
An SVG mockup of an iPhone.
API
Prop Name | Type | Default | Description |
---|---|---|---|
width | number | 433 | Width of the mockup SVG in pixels. |
height | number | 882 | Height of the mockup SVG in pixels. |
src | string | null | URL of the image to display inside the mockup. |
Component Code
You can copy and paste the following code to create this component:
iPhone15ProMockup.vue
Features
- Realistic iPhone 15 Pro Mockup: Provides an accurate SVG representation of the iPhone 15 Pro, perfect for showcasing mobile app designs or website previews.
- Customizable Dimensions: Adjust the
width
andheight
props to fit your specific design requirements. - Image Display Support: Use the
src
prop to insert any image into the mockup screen area, allowing for dynamic content display. - Light and Dark Mode Compatibility: The mockup adapts its colors based on the theme, ensuring consistency in both light and dark modes.
- Easy Integration: Simple to include in your Vue projects with minimal setup.
Credits
- Ported from Magic UI.