View as Markdown

API reference: @salmonui/notifications/toast

ToastCloseEventinterface

import type { ToastCloseEvent } from '@salmonui/notifications/toast';
interface ToastCloseEvent {
    readonly id: string;
    readonly reason: ToastCloseReason;
}

Passed to onClose.

ToastCloseEvent members (2)
NameSignatureDescription
idreadonly id: string;
reasonreadonly reason: ToastCloseReason;