interface ToastOptions {
    actionButtonText?: string;
    autoClose?: boolean;
    message: string;
}

Properties

actionButtonText?: string

Text for an optional action button. If provided, autoClose defaults to false.

autoClose?: boolean

Whether the toast automatically closes. Defaults to true, unless actionButtonText is set.

message: string

The message to display in the toast.