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.

composables/useToast.ts
useToast(): { toasts: any; show: (message: string, options?: ToastShowOptions) => any; success: (title: string, options?: ToastOptions) => any; info: (title: string, options?: ToastOptions) =…
Returnstoastsshowsuccessinfowarningerrorneutralpromiseupdatedismissclear

useConfirm()

Turns a BaseConfirmDialog into a promise: bind isOpen, call await ask() and wire accept/reject to its events.

composables/useConfirm.ts
useConfirm(): { isOpen: any; ask: () => Promise<boolean>; accept: () => void; reject: () => void; }
ReturnsisOpenaskacceptreject
© 2026 melsami UI.
Developer documentation for melsami UI.