Komponente
Cut-corner button
@moga/industrial-ui · Offiziell von MOGA
Why a cut corner means press me, side by side: a square card that only shows a state, and a card with corners cut that a pointer presses at pressAt; the accent wipes across it, it dips, and its result decodes in. A caption under both. Fills its box (about 640 × 300).
npx motioncn-cli add moga/industrial-ui/cut-buttonVersion 1.0.0MIT88 Downloads0 Favoriten
Aktualisiert am 5. Dezember 2026
In MOGA verwenden
Nur dieses importieren, ohne den Rest des Bundles. Tokens des Bundles, die es nutzt, kommen mit. Im Projektordner ausführen:
npx -y moga hub-import @moga/industrial-ui --items component:cut-buttonAuß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/moga/industrial-ui/cut-button.jsonOhne shadcn-Setup geht es auch
npx motioncn-cli add moga/industrial-ui/cut-buttonOhne Build in einer Seite importieren
import CutButton from 'https://motioncn.dev/m/moga/industrial-ui/cut-button.js';
import preset from 'https://motioncn.dev/m/theme.js';
CutButton.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion und HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={CutButton} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={CutButton} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(CutButton.mount(element, { preset, duration: 5 }), { start: 0 });
