Komponente
Laptop frame
@moga/product-ui · Offiziell von MOGA
A realistic laptop from the front, drawn (thin black bezel with a camera, aluminium lid edge, slim base with a thumb scoop). Its lid opens on its hinge in perspective as it enters; its screen (16 : 10) shows a screenshot or lets the layers under it show through. Size the element about 3 : 2 (e.g. 1200 × 790). Key open (0 closed, 1 open) and scroll.
npx motioncn-cli add moga/product-ui/laptop-frameVersion 1.0.1MIT39 Downloads0 Favoriten
Aktualisiert am 3. Dezember 2026
In MOGA verwenden
Nur dieses importieren, ohne den Rest des Bundles. Tokens des Bundles, die es nutzt, kommen mit. Im Projektordner ausführen:
npx -y moga hub-import @moga/product-ui --items component:laptop-frameAußerhalb von MOGA verwenden (Motioncn)
Kostenlos, ohne Konto. Es ist normaler Webcode, der in einer Webseite, React, Remotion und HyperFrames läuft und dieselben Frames zeichnet wie MOGA.
Mit shadcn ins Projekt holen
npx shadcn@latest add https://motioncn.dev/r/moga/product-ui/laptop-frame.jsonOhne shadcn-Setup geht es auch
npx motioncn-cli add moga/product-ui/laptop-frameOhne Build in einer Seite importieren
import LaptopFrame from 'https://motioncn.dev/m/moga/product-ui/laptop-frame.js';
import preset from 'https://motioncn.dev/m/theme.js';
LaptopFrame.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion und HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={LaptopFrame} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={LaptopFrame} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(LaptopFrame.mount(element, { preset, duration: 5 }), { start: 0 });
