Components
Device Frames
Phone, laptop and browser frames.
ProPro, coming soon.
Inbox
Design review at 3pm
Invoice #2041 paid
New comment on Spec
Weekly digest
Deploy succeeded
<DeviceFrame>
<img src="/screen.png" alt="…" />
</DeviceFrame>Get notified
Device Frames is a Pro effect. Join the waitlist and we'll email you when it's available.
Usage
Puts a phone, laptop or browser window around a screenshot, a video or live UI. The frame is all CSS, so it stays sharp at any size, and your content inside is untouched.
import { DeviceFrame } from "@zjkm/pro/device-frames";
export function Showcase() {
return (
<DeviceFrame device="browser" url="app.example.com">
<img src="/dashboard.png" alt="The dashboard, showing this week's revenue" />
</DeviceFrame>
);
}The phone is 280 pixels wide by default. The laptop and browser fill their container. Set a width with className to change either.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | The screen: a screenshot, video or live UI. | |
device | "phone" | "laptop" | "browser" | "phone" | Which frame. |
url | string | "example.com" | Text in the browser's address bar. |
color | string | "#18181b" | Frame colour for the phone and laptop. |
className | string | Classes for the frame. |
The frames don't move, so reduced motion changes nothing.