Skip to Content
zjkm-ui
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
Props
<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

PropTypeDefaultDescription
childrenReactNodeThe screen: a screenshot, video or live UI.
device"phone" | "laptop" | "browser""phone"Which frame.
urlstring"example.com"Text in the browser's address bar.
colorstring"#18181b"Frame colour for the phone and laptop.
classNamestringClasses for the frame.

The frames don't move, so reduced motion changes nothing.

On this page