Device Frame
Generic, logo-free device chrome for product shots: a browser with a frosted toolbar and centred address field, or a phone with a machined two-tone rim, punch-hole camera, status bar and floating glass tab bar.
Try it: Scroll it into view — it rises in; drop your own screenshot or live UI inside.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/device-frame.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/device-frame. You can also copy the source into components/ui/device-frame.tsx (view on GitHub).
Usage
import { DeviceFrame } from '@/components/ui/device-frame'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
variant | 'browser' | 'phone' | 'browser' | Which frame to render. |
url | string | 'acme.studio/launch' | Address shown in the browser field. |
src / alt | string | — | Screenshot placed inside the screen (object-cover, top aligned). |
children | ReactNode | — | Live screen content; takes priority over src. Defaults to a generated page / app. |
time | string | '10:24' | Clock in the phone status bar. |
animateIn | boolean | true | Fade and rise into view on first scroll-in. |
className | string | — | Extra classes merged onto the frame. |
Dependencies
motionlucide-react
Related Cards components
- Neon Halo Card
A card rimmed by a slow sweep of coloured light: a conic gradient travels a hairline edge while a soft bloom breathes behind it, and the pointer pulls a quiet spotlight across the surface.…
- Feature Bento Grid
An asymmetric grid of feature tiles with generated art. Hover or focus a tile: it lifts, a hairline light follows the pointer around its edge, the art drifts up and a call-to-action rises. CTAs stay…
- Video Lightbox Dialog
A cinematic thumbnail with a clear-glass play button that grows into a focused player on a shared-layout spring while the page blurs back. Bring your own video, or use the generated preview with…
- Sticky Card Stack
Project cards that pin one over the next like a deck being dealt — each card shrinks back and dims as the following one slides up over it, still peeking out by a few pixels. Scroll-driven with…
- Editorial Spread Card
A magazine cover on real CSS 3D: hover and it lifts off its spine, click and it swings open on a hinge while the issue slides to centre, revealing a two-page spread with a pull quote, deck and…
- Mesh Project Cards
Project cards headed by a living mesh gradient — drifting blurred blobs with film grain — and a status pill that pulses for live and in-progress work. Cards tilt toward the pointer with a travelling…