Icon buttonIcon button
In MOGA öffnen

Komponente

Icon button

@m3e/icon-button · Offiziell von MOGA

Icon-only button: standard, filled, tonal, outlined; narrow, default and wide widths.

#m3e#material

npx motioncn-cli add m3e/icon-button

Version 0.0.1MIT5 Downloads0 Favoriten

Aktualisiert am 5. Dezember 2026

In MOGA verwenden

Such es in der MOGA-Bibliothek unter „Online“ oder führe das im Projektordner aus:

npx -y moga hub-import @m3e/icon-button

Außerhalb von MOGA verwenden (Motioncn)

Kostenlos, ohne Konto. Es ist normaler Webcode, der in einer Webseite, React, Remotion und HyperFrames läuft und dieselben Frames zeichnet wie MOGA.

Mit shadcn ins Projekt holen

npx shadcn@latest add https://motioncn.dev/r/m3e/icon-button.json

Ohne shadcn-Setup geht es auch

npx motioncn-cli add m3e/icon-button

Ohne Build in einer Seite importieren

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