コンポーネント
Ring stat
@moga/data-motion · MOGA 公式
A ring that fills to a share while the number in its middle counts with it, its label under it. Give it a square-ish box (about 640 × 760 with a label).
npx motioncn-cli add moga/data-motion/ring-statバージョン 1.0.0MIT35 ダウンロード0 お気に入り
2026年12月3日 更新
MOGA で使う
バンドル全体ではなく、これだけをインポートします。使っているバンドルのトークンも一緒に入ります。プロジェクトフォルダで実行:
npx -y moga hub-import @moga/data-motion --items component:ring-statMOGA の外で使う(Motioncn)
無料、アカウント不要。ふつうの Web コードなので、Web ページ、React、Remotion、HyperFrames で再生でき、MOGA と同じフレームを描きます。
shadcn でプロジェクトに追加
npx shadcn@latest add https://motioncn.dev/r/moga/data-motion/ring-stat.jsonshadcn を設定していなくても使えます
npx motioncn-cli add moga/data-motion/ring-statビルドなしでページから import
import RingStat from 'https://motioncn.dev/m/moga/data-motion/ring-stat.js';
import preset from 'https://motioncn.dev/m/theme.js';
RingStat.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React、Remotion、HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={RingStat} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={RingStat} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(RingStat.mount(element, { preset, duration: 5 }), { start: 0 });
