Stat tileStat tile
MOGA で開く

コンポーネント

Stat tile

stat-tile · MOGA 公式

A number that counts up on M3E springs, with its label and a filling bar

npx motioncn-cli add stat-tile

バージョン 1.0.2MIT17 ダウンロード0 お気に入り

2026年12月3日 更新

MOGA で使う

MOGA ライブラリの「オンライン」で検索するか、プロジェクトのフォルダで次を実行します:

npx -y moga hub-import stat-tile

MOGA の外で使う(Motioncn)

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

shadcn でプロジェクトに追加

npx shadcn@latest add https://motioncn.dev/r/stat-tile.json

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

npx motioncn-cli add stat-tile

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

import StatTile from 'https://motioncn.dev/m/stat-tile.js';
import preset from 'https://motioncn.dev/m/theme.js';
StatTile.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();

React、Remotion、HyperFrames

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