Member Junction
    Preparing search index...

    Command to show a notification message to the user.

    This command displays a toast/notification with a message, typically used to confirm successful operations or alert about errors.

    {
    "type": "notification",
    "message": "Customer 'Acme Corp' created successfully",
    "severity": "success",
    "duration": 3000
    }
    {
    "type": "notification",
    "message": "Failed to save changes: Invalid email format",
    "severity": "error",
    "duration": 5000
    }
    interface ShowNotificationCommand {
        duration?: number;
        message: string;
        severity?: "error" | "warning" | "success" | "info";
        type: "notification";
    }
    Index

    Properties

    duration?: number

    Duration in milliseconds before auto-dismissing. Set to 0 for manual dismiss only. Default: 3000 (3 seconds)

    message: string

    Message text to display. Keep concise but informative (1-2 sentences).

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

    Severity level affecting icon and color:

    • 'success': Green with checkmark icon
    • 'info': Blue with info icon
    • 'warning': Yellow with warning icon
    • 'error': Red with error icon

    Default: 'info'

    type: "notification"

    Command type identifier