A device-frame illustration with side buttons, dynamic island, and a cropped/scrolled variant for showcasing app screens.
Props
Options you can pass to customize this component.
variantChassis color. Defaults to "accent".
visibleRatioFraction of the phone height shown, cropping the frame from the bottom to simulate a scrolled screen. Defaults to 1 (full phone).
showDynamicIslandShows the dynamic island cutout. Defaults to true.
classNameExtra classes merged onto the root element.
Installation
How to use
import { PhoneMockupCard } from "@/components/illustration/phone-mockup"
export function Example() {
return (
<PhoneMockupCard variant="accent">
<YourAppScreen />
</PhoneMockupCard>
)
}Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.