Interface NotificationMessage

A record of a notification to be shown in the UI.

interface NotificationMessage {
    actionButtonLabel?: string;
    groupID?: string;
    kind:
        | "error"
        | "info"
        | "success"
        | "info-square"
        | "warning"
        | "warning-alt";
    message: string;
    onActionButtonClick?: () => void;
    onCloseButtonClick?: () => void;
    title: string;
}

Properties

actionButtonLabel?: string

An optional action button that a user can click. If there is an action button, we will not auto dismiss.

groupID?: string

The group id that associates notifications together. This can be used to remove the notification later.

kind: "error" | "info" | "success" | "info-square" | "warning" | "warning-alt"
message: string

The message to show.

onActionButtonClick?: () => void

The callback called when someone clicks on the action button.

onCloseButtonClick?: () => void

The callback called when someone clicks on the close button.

title: string

The title to show in the message.

MMNEPVFCICPMFPCPTTAAATR