Ring statRing stat
Ouvrir dans MOGA

Composant

Ring stat

@moga/data-motion · Officiel MOGA

Fait partie du pack Data motion

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

Version 1.0.0MIT35 téléchargements0 favoris

Mis à jour le 3 décembre 2026

L'utiliser dans MOGA

Importez seulement celui-ci, sans le reste du bundle. Les tokens du bundle qu’il utilise viennent avec. Lancez dans le dossier du projet :

npx -y moga hub-import @moga/data-motion --items component:ring-stat

L'utiliser hors de MOGA (Motioncn)

Gratuit, sans compte. C'est du code web ordinaire qui se lit dans une page, React, Remotion et HyperFrames, avec les mêmes images que MOGA.

L'ajouter à votre projet avec shadcn

npx shadcn@latest add https://motioncn.dev/r/moga/data-motion/ring-stat.json

Sans shadcn configuré, ceci marche aussi

npx motioncn-cli add moga/data-motion/ring-stat

L'importer dans une page, sans build

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