Composant
Laptop frame
@moga/product-ui · Officiel MOGA
Fait partie du pack Product UI
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 téléchargements0 favoris
Mis à jour le 3 décembre 2026
L'utiliser dans MOGA
Importez seulement celui-ci, sans le reste du bundle. Les tokens du bundle qu’il utilise viennent avec. Lancez dans le dossier du projet :
npx -y moga hub-import @moga/product-ui --items component:laptop-frameL'utiliser hors de MOGA (Motioncn)
Gratuit, sans compte. C'est du code web ordinaire qui se lit dans une page, React, Remotion et HyperFrames, avec les mêmes images que MOGA.
L'ajouter à votre projet avec shadcn
npx shadcn@latest add https://motioncn.dev/r/moga/product-ui/laptop-frame.jsonSans shadcn configuré, ceci marche aussi
npx motioncn-cli add moga/product-ui/laptop-frameL'importer dans une page, sans build
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 et 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 });
