NotificationService

Toast-style notifications with auto-dismiss. Uses FlexCore's NotificationService + NotificationDisplayControl.

Markup

@inject NotificationService Notifications

<ButtonControl CssClass="btn-primary"
    OnClick="@(() => Notifications.Info("Message"))">Info</ButtonControl>

<!-- Place once near root layout -->
<NotificationDisplayControl />

Service registration

// Program.cs
builder.Services.AddScoped<NotificationService>();
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.