Component
Toast note
@moga/product-ui · MOGA official
A notification that drops in on a spring and leaves over the element's last 0.4 s. banner is a frosted system notification (app icon, title and time, two lines of body; about 720 × 168, it scales with the width), toast a compact pill (about 480 × 64, it scales with the height), snackbar a dark bar with an action (about 760 × 60). Its type reads on video from those sizes up. Drawn in the scheme's colours, so it follows light and dark. Size the element to the notification.
npx motioncn-cli add moga/product-ui/toast-noteVersion 1.0.1MIT39 downloads0 favorites
Updated December 3, 2026
Use it in MOGA
Import just this one, without the rest of the bundle. Bundle tokens it uses come with it. Run in your project folder:
npx -y moga hub-import @moga/product-ui --items component:toast-noteUse 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/moga/product-ui/toast-note.jsonNo shadcn setup? This works too
npx motioncn-cli add moga/product-ui/toast-noteImport it in a page, no build
import ToastNote from 'https://motioncn.dev/m/moga/product-ui/toast-note.js';
import preset from 'https://motioncn.dev/m/theme.js';
ToastNote.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion and HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={ToastNote} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={ToastNote} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(ToastNote.mount(element, { preset, duration: 5 }), { start: 0 });
