Componente
Shape
@m3e/shape · Oficial de 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/shapeVersión 0.0.1MIT3 descargas0 favoritos
Actualizado el 5 de diciembre de 2026
Úsalo en MOGA
Búscalo en «En línea» de la biblioteca de MOGA, o ejecuta esto en la carpeta de tu proyecto:
npx -y moga hub-import @m3e/shapeÚsalo fuera de MOGA (Motioncn)
Gratis y sin cuenta. Es código web normal que se reproduce en una página, React, Remotion y HyperFrames, con los mismos fotogramas que MOGA.
Añádelo a tu proyecto con shadcn
npx shadcn@latest add https://motioncn.dev/r/m3e/shape.json¿Sin shadcn configurado? También funciona
npx motioncn-cli add m3e/shapeImpórtalo en una página, sin compilar
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 y 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 });
