Toast noteToast note
MOGA에서 열기

컴포넌트

Toast note

@moga/product-ui · MOGA 공식

번들 Product UI에 포함

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-note

버전 1.0.1MIT다운로드 39회즐겨찾기 0

2026년 12월 3일 업데이트

MOGA에서 사용

번들 전체가 아니라 이것만 가져옵니다. 사용하는 번들 토큰도 함께 들어옵니다. 프로젝트 폴더에서 실행하세요:

npx -y moga hub-import @moga/product-ui --items component:toast-note

MOGA 밖에서 사용 (Motioncn)

무료이고 계정이 필요 없습니다. 일반 웹 코드라서 웹 페이지, React, Remotion, HyperFrames에서 재생되며 MOGA와 같은 프레임을 그립니다.

shadcn으로 프로젝트에 추가

npx shadcn@latest add https://motioncn.dev/r/moga/product-ui/toast-note.json

shadcn 설정 없이도 됩니다

npx motioncn-cli add moga/product-ui/toast-note

빌드 없이 페이지에서 import

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