Komponente
Text field
@m3e/text-field · Offiziell von MOGA
Filled and outlined fields; the label floats on focus, value types on.
npx motioncn-cli add m3e/text-fieldVersion 0.0.1MIT2 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/text-fieldAuß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/text-field.jsonOhne shadcn-Setup geht es auch
npx motioncn-cli add m3e/text-fieldOhne Build in einer Seite importieren
import TextField from 'https://motioncn.dev/m/m3e/text-field.js';
import preset from 'https://motioncn.dev/m/theme.js';
TextField.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion und HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={TextField} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={TextField} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(TextField.mount(element, { preset, duration: 5 }), { start: 0 });
