Skip to content

Toast beta ​

Interface of @v12-engine/client

ts
export interface Toast

A short message on the screen that goes by itself after a while

Members ​

action ​

ts
action?: {
        label: string;
        run: () => void;
    };

A button with it, and what it does

id ​

ts
id: string;

Unique id of the toast, used to take it away

message ​

ts
message: string;

The words the toast says

tone ​

ts
tone: Tone;

How the toast looks: default, success or danger