Table of Contents

Class Snackbar

Namespace
MudBlazor
Assembly
MudBlazor.dll

The service used to display snackbar messages.

public class Snackbar : IDisposable
Inheritance
Snackbar
Implements
Inherited Members
Extension Methods

Properties

Message

The message to display.

public string? Message { get; }

Property Value

string

Severity

The severity of the snackbar message.

public Severity Severity { get; }

Property Value

Severity

Methods

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

ForceClose()

Forcibly closes the snackbar without performing any animations.

public void ForceClose()

PauseTransitions(bool)

public void PauseTransitions(bool pause)

Parameters

pause bool

Events

OnClose

Occurs when a snackbar is closed.

public event Action<Snackbar>? OnClose

Event Type

Action<Snackbar>

OnUpdate

Occurs when a snackbar changes.

public event Action? OnUpdate

Event Type

Action