Default Light
MgLibrary
Overview
Installation
Buttons
Cards
Charts
Codes
Data Grids
Dropdowns
Editors
Headers & Animations
Icons
Indicators
Inputs
Lists
Modals
Menus
Panels
Pills & Chips
Scheduling
Tabs
Time Line
Trees
Customization

Alerts

Inline notifications that inform users about important status updates or system events.

Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.

API Reference

MgAlertCollection

Property Type Default Description
VisibleSeconds double 10 How long each alert remains visible before auto-closing.

IAlertService

Member Type Description
AddInfo(content) void Queues an informational alert.
AddDanger(content) void Queues an error alert.
AddWarning(content) void Queues a warning alert.
AddSuccess(content) void Queues a success alert.
OnShowAlert event Action<MgEnums.MgAlertType, string> Raised when an alert is requested.
An unhandled error has occurred. Reload 🗙