Step flowStep flow
MOGA で開く

コンポーネント

Step flow

@moga/callouts · MOGA 公式

バンドル Callouts の一部

A process as numbered steps in a row: they arrive unlit, left to right, then the line fills from one step to the next and each lights up as it is reached, its number springing. Give it its own box (about 1600 × 600).

npx motioncn-cli add moga/callouts/step-flow

バージョン 1.0.0MIT43 ダウンロード0 お気に入り

2026年12月3日 更新

MOGA で使う

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

npx -y moga hub-import @moga/callouts --items component:step-flow

MOGA の外で使う(Motioncn)

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

shadcn でプロジェクトに追加

npx shadcn@latest add https://motioncn.dev/r/moga/callouts/step-flow.json

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

npx motioncn-cli add moga/callouts/step-flow

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

import StepFlow from 'https://motioncn.dev/m/moga/callouts/step-flow.js';
import preset from 'https://motioncn.dev/m/theme.js';
StepFlow.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();

React、Remotion、HyperFrames

// React (https://motioncn.dev/r/player-react.json)
<Motion motion={StepFlow} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={StepFlow} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(StepFlow.mount(element, { preset, duration: 5 }), { start: 0 });