Stat tileStat tile
In MOGA öffnen

Komponente

Stat tile

stat-tile · Offiziell von MOGA

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

npx motioncn-cli add stat-tile

Version 1.0.2MIT17 Downloads0 Favoriten

Aktualisiert am 3. Dezember 2026

In MOGA verwenden

Such es in der MOGA-Bibliothek unter „Online“ oder führe das im Projektordner aus:

npx -y moga hub-import stat-tile

Außerhalb von MOGA verwenden (Motioncn)

Kostenlos, ohne Konto. Es ist normaler Webcode, der in einer Webseite, React, Remotion und HyperFrames läuft und dieselben Frames zeichnet wie MOGA.

Mit shadcn ins Projekt holen

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

Ohne shadcn-Setup geht es auch

npx motioncn-cli add stat-tile

Ohne Build in einer Seite importieren

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