Component
Button
@m3e/button · MOGA official
Common button in five sizes; squishes on press, morphs round↔square when it toggles.
npx motioncn-cli add m3e/buttonVersion 0.0.1MIT3 downloads0 favorites
Updated December 5, 2026
Use it in MOGA
Search for it under Online in the MOGA library, or run this in your project folder:
npx -y moga hub-import @m3e/buttonUse it outside MOGA (Motioncn)
Free, no account. It is plain web code that plays in a web page, React, Remotion and HyperFrames, drawing the same frames MOGA renders.
Add it to your project with shadcn
npx shadcn@latest add https://motioncn.dev/r/m3e/button.jsonNo shadcn setup? This works too
npx motioncn-cli add m3e/buttonImport it in a page, no build
import Button from 'https://motioncn.dev/m/m3e/button.js';
import preset from 'https://motioncn.dev/m/theme.js';
Button.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion and HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={Button} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={Button} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(Button.mount(element, { preset, duration: 5 }), { start: 0 });
