Laptop frameLaptop frame
MOGA で開く

コンポーネント

Laptop frame

@moga/product-ui · MOGA 公式

バンドル 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-frame

バージョン 1.0.1MIT39 ダウンロード0 お気に入り

2026年12月3日 更新

MOGA で使う

バンドル全体ではなく、これだけをインポートします。使っているバンドルのトークンも一緒に入ります。プロジェクトフォルダで実行:

npx -y moga hub-import @moga/product-ui --items component:laptop-frame

MOGA の外で使う(Motioncn)

無料、アカウント不要。ふつうの Web コードなので、Web ページ、React、Remotion、HyperFrames で再生でき、MOGA と同じフレームを描きます。

shadcn でプロジェクトに追加

npx shadcn@latest add https://motioncn.dev/r/moga/product-ui/laptop-frame.json

shadcn を設定していなくても使えます

npx motioncn-cli add moga/product-ui/laptop-frame

ビルドなしでページから import

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、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 });