Component
3D device
@moga/product-ui · MOGA official
A phone or a laptop in real 3D (three.js), modelled from rounded shapes: metal lit by a soft studio, glass that catches the light, and a screen that shows a screenshot. It turns in on its own, the laptop's lid opens, and it floats gently. Key turn, tilt, open, zoom and scroll. Give it a roomy box (e.g. 900 × 900 for a phone, 1600 × 1000 for a laptop); the device fills about 80 % of it.
npx motioncn-cli add moga/product-ui/device-3dVersion 1.0.1MIT39 downloads0 favorites
Updated December 3, 2026
Use it in MOGA
Import just this one, without the rest of the bundle. Bundle tokens it uses come with it. Run in your project folder:
npx -y moga hub-import @moga/product-ui --items component:device-3dUse it outside MOGA (Motioncn)
Free, no account. It is plain web code that plays in a web page, React, Remotion and HyperFrames, drawing the same frames MOGA renders.
Add it to your project with shadcn
npx shadcn@latest add https://motioncn.dev/r/moga/product-ui/device-3d.jsonNo shadcn setup? This works too
npx motioncn-cli add moga/product-ui/device-3dImport it in a page, no build
import Device3d from 'https://motioncn.dev/m/moga/product-ui/device-3d.js';
import preset from 'https://motioncn.dev/m/theme.js';
Device3d.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion and HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={Device3d} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={Device3d} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(Device3d.mount(element, { preset, duration: 5 }), { start: 0 });
