Properties

delay?: number = 3000

The time in ms that the message will persist. This is overriden by the permenant field

permanent?: boolean = false

Whether the message will require user interaction to be dismissed. This overrides the delay field

severity?:
    | "error"
    | "success"
    | "info"
    | "warn"

The level of importance of the message.

When set to 'success', the message is green.

When set to 'warn', the message is yellow.

When set to 'error', the message is red.

When set to 'info', the message is the default background color.

text?: string

The body of the message

title?: string

The header of the message