Interface UiToastRequest

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

Properties

closable?: boolean

Visibility of the close button, default is true

true
duration?: number

Optional, value in milliseconds

3500
keepAliveOnHover?: boolean

Toast won't be hidden as long as it is hovered

true
message: string

Text to show inside the toast

**REQUIRED**
showIcon?: boolean

Set to false to hide the icon

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

Type of the toast, influences the default icon

**REQUIRED**