Class CommonSnackbarOptions
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
The options which control Snackbar pop-ups.
public abstract class CommonSnackbarOptions
- Inheritance
-
CommonSnackbarOptions
- Derived
- Inherited Members
- Extension Methods
Constructors
CommonSnackbarOptions()
protected CommonSnackbarOptions()
CommonSnackbarOptions(CommonSnackbarOptions)
protected CommonSnackbarOptions(CommonSnackbarOptions options)
Parameters
options
CommonSnackbarOptions
Properties
BackgroundBlurred
Blurs the background of the snackbar.
public bool BackgroundBlurred { get; set; }
Property Value
Remarks
Defaults to false
.
ErrorIcon
The icon displayed for Error
severity snackbars.
public string ErrorIcon { get; set; }
Property Value
Remarks
Defaults to ErrorOutline.
HideTransitionDuration
The time, in milliseconds, to hide the snackbar.
public int HideTransitionDuration { get; set; }
Property Value
Remarks
Defaults to 2000
(two seconds).
IconSize
The default icon size for the snackbar.
public Size IconSize { get; set; }
Property Value
Remarks
Defaults to Medium.
InfoIcon
The icon displayed for Info
severity snackbars.
public string InfoIcon { get; set; }
Property Value
Remarks
Defaults to Info.
MaximumOpacity
The maximum opacity for the snackbar.
public int MaximumOpacity { get; set; }
Property Value
Remarks
Defaults to 95
. The maximum value is 100
.
NormalIcon
The icon displayed for Normal
severity snackbars.
public string NormalIcon { get; set; }
Property Value
Remarks
Defaults to EventNote.
RequireInteraction
Shows the snackbar until a user manually closes it.
public bool RequireInteraction { get; set; }
Property Value
Remarks
Defaults to false
.
ShowCloseIcon
Displays a close icon for the snackbar.
public bool ShowCloseIcon { get; set; }
Property Value
Remarks
Defaults to true
.
ShowTransitionDuration
The time, in milliseconds, to animate showing the snackbar.
public int ShowTransitionDuration { get; set; }
Property Value
Remarks
Defaults to 1000
(one second).
SnackbarVariant
The default display variant for the snackbar.
public Variant SnackbarVariant { get; set; }
Property Value
Remarks
Defaults to Filled.
SuccessIcon
The icon displayed for Success
severity snackbars.
public string SuccessIcon { get; set; }
Property Value
Remarks
Defaults to AlertSuccess.
VisibleStateDuration
The time, in milliseconds, to show the snackbar.
public int VisibleStateDuration { get; set; }
Property Value
Remarks
Defaults to 5000
(five seconds).
WarningIcon
The icon displayed for Warning
severity snackbars.
public string WarningIcon { get; set; }
Property Value
Remarks
Defaults to ReportProblem.