Options for displaying error notifications with recovery actions.

export interface ErrorNotificationOptions {
/** Callback to execute when user clicks retry button */
onRetry?: () => void | Promise<void>;
/** Callback to execute when user dismisses the notification */
onDismiss?: () => void;
/** Toast ID for updating existing toasts */
toastId?: string | number;
/** Custom toast duration in milliseconds */
duration?: number;
}
interface ErrorNotificationOptions {
    onRetry?: () => void | Promise<void>;
    onDismiss?: () => void;
    toastId?: string | number;
    duration?: number;
}

Properties

onRetry?: () => void | Promise<void>

Callback to execute when user clicks retry button

onDismiss?: () => void

Callback to execute when user dismisses the notification

toastId?: string | number

Toast ID for updating existing toasts

duration?: number

Custom toast duration in milliseconds