Account

Chrome

Creative

Device Frame

Monochrome hardware so the screen is the subject, with an optional tilt toward the pointer. Live components, not only screenshots.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add device-frame

Usage

Example
import { DeviceFrame } from "@/components/galactrex/device-frame";

<DeviceFrame device="phone"><AppScreen /></DeviceFrame>

Source

Installs to components/galactrex/device-frame.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
childrenReactNode—Screen content.
device"phone" | "tablet" | "laptop" | "watch""phone"Device.
tiltbooleantrueTilt toward the pointer.
classNamestring—Extra classes for the outer element.

Variants

  • Four devices. Phone, tablet, laptop, watch.

Accessibility

  • Frame is decorative; content inside keeps its own semantics.

Motion and reduced motion

  • Spring tilt from motion values.
  • Touch and reduced motion: flat.