API reference
Feedback
Toasts and confirmation dialogs.
The Toasts, alerts and dialogs guide explains when to use each one.
useToast()
Shows toasts rendered by AppToast: success, info, warning, error, neutral, promise, plus update, dismiss and clear.
useToast(): { toasts: any; show: (message: string, options?: ToastShowOptions) => any; success: (title: string, options?: ToastOptions) => any; info: (title: string, options?: ToastOptions) =…Returns
toastsshowsuccessinfowarningerrorneutralpromiseupdatedismissclearuseConfirm()
Turns a BaseConfirmDialog into a promise: bind isOpen, call await ask() and wire accept/reject to its events.
useConfirm(): { isOpen: any; ask: () => Promise<boolean>; accept: () => void; reject: () => void; }Returns
isOpenaskacceptreject