SnackbarAlertProps
Props for the SnackbarAlert component
Param
Whether the snackbar is open
Param
Message to display in the snackbar
Param
Severity level of the alert
Param
Function to call when snackbar is closed
Param
Duration in milliseconds before the snackbar auto-hides
Param
Position of the snackbar on the screen
Properties
anchorOrigin?
optional anchorOrigin: {
horizontal: "right" | "left" | "center";
vertical: "top" | "bottom";
};
Position of the snackbar on the screen
horizontal
horizontal: "right" | "left" | "center";
vertical
vertical: "top" | "bottom";
autoHideDuration?
optional autoHideDuration: number;
Duration in milliseconds before the snackbar auto-hides
message
message: string;
Message to display in the snackbar
onClose()
onClose: () => void;
Function to call when snackbar is closed
Returns
void
open
open: boolean;
Whether the snackbar is open
severity
severity: AlertColor;
Severity level of the alert