Component
Icon button
@m3e/icon-button · MOGA official
Icon-only button: standard, filled, tonal, outlined; narrow, default and wide widths.
npx motioncn-cli add m3e/icon-buttonVersion 0.0.1MIT5 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/icon-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/icon-button.jsonNo shadcn setup? This works too
npx motioncn-cli add m3e/icon-buttonImport it in a page, no build
import IconButton from 'https://motioncn.dev/m/m3e/icon-button.js';
import preset from 'https://motioncn.dev/m/theme.js';
IconButton.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion and HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={IconButton} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={IconButton} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(IconButton.mount(element, { preset, duration: 5 }), { start: 0 });
