Componente
Shape
@m3e/shape · Oficial do MOGA
Any of the M3 Expressive shapes, morphing between two of them; filled, outlined or a ring, and stretched into a bar with round ends.
npx motioncn-cli add m3e/shapeVersão 0.0.1MIT3 downloads0 favoritos
Atualizado em 5 de dezembro de 2026
Usar no MOGA
Procure em «Online» na biblioteca do MOGA, ou rode isto na pasta do projeto:
npx -y moga hub-import @m3e/shapeUsar fora do MOGA (Motioncn)
Grátis, sem conta. É código web comum que roda numa página, React, Remotion e HyperFrames, com os mesmos quadros que o MOGA renderiza.
Adicionar ao projeto com shadcn
npx shadcn@latest add https://motioncn.dev/r/m3e/shape.jsonSem shadcn configurado também funciona
npx motioncn-cli add m3e/shapeImportar numa página, sem build
import Shape from 'https://motioncn.dev/m/m3e/shape.js';
import preset from 'https://motioncn.dev/m/theme.js';
Shape.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion e HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={Shape} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={Shape} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(Shape.mount(element, { preset, duration: 5 }), { start: 0 });
