Props for the custom Alert component.

Inherits all props from @mui/material/AlertProps. Supports additional enhancements like custom icons, titles, and message string.

interface AlertProps {
    alertTitle?: string;
    icon?: ReactNode;
    message: string;
    severity?: AlertSeverity;
}

Hierarchy

  • AlertProps
    • AlertProps

Properties

alertTitle?: string

Optional title to show above the alert message.

icon?: ReactNode

Optional icon to replace the default alert icon. If icon is passed, it disables the default MUI icon unless explicitly rendered.

message: string

Main content message of the alert.

severity?: AlertSeverity

Severity level of the alert.

'info'