Chrome
CreativeDevice 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.
npx @galactrex/ui add device-frameUsage
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.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Screen content. |
device | "phone" | "tablet" | "laptop" | "watch" | "phone" | Device. |
tilt | boolean | true | Tilt toward the pointer. |
className | string | — | 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.