Interface AdminToastRequest

Represents a request to show a toast notification.

interface AdminToastRequest {
    closable?: boolean;
    duration?: number;
    keepAliveOnHover?: boolean;
    message: string;
    showIcon?: boolean;
    type: "error" | "info" | "warning" | "success" | "loading";
}

Properties

closable?: boolean

Indicates if the toast can be closed manually (optional).

duration?: number

Duration for which the toast should be displayed (optional).

keepAliveOnHover?: boolean

Indicates if the toast should remain visible when hovered over (optional).

message: string

Message to be displayed in the toast.

showIcon?: boolean

Indicates if an icon should be shown in the toast (optional).

type: "error" | "info" | "warning" | "success" | "loading"

Type of the toast notification.