Configuration options for displaying a text alert.

interface TextAlertOptions {
    backgroundColor?: string;
    classNames?: string[];
    textColor?: string;
    timeout?: number;
}

Properties

backgroundColor?: string

Background color of the text alert.

classNames?: string[]

Custom class names to apply to the text alert.

textColor?: string

Text color of the text alert.

timeout?: number

Duration in milliseconds before the text alert automatically disappears. Defaults to 3000 (3 seconds).