Table of Contents

Toast

Summary

The toast service is an added extra, styled to fit in with Material.Blazor, but outside the Material Theme specification. Our implementation is a revised port of Chris Sainty's Blazored/Toast.

Service Setup and Anchor

The service is installed as described in the Installation article. Configuration parameters are listed on the IMBToastService class api documentation page. You will also need to place the MBAnchor component in App.razor, also as shown in the Installation article.

Launching a Toast

Toast notifications are launched from C# code. Use dependency injection to get an IMBToastService and then call a toast using its ShowToast() method.