Skip to content

Toast (am-toast)

am-toastToastProvider 提供全域通知 API(window.toast)。

  • toast.show({ title, description?, variant? })
  • toast.info / toast.success / toast.warning / toast.error

在 layout 掛載 <ToastProvider />,於 client 呼叫 window.toast.success('完成') 等。

詳見 playground /playground/toast/ 範例。