Trusted by the world’s leading companies
Overview
Blazor Toast is a small, nonblocking notification pop-up. A Blazor toast is shown to users with readable message content at the bottom of the screen or at a specific target and disappears automatically after a few seconds (time-out) with different animation effects. The control has various built-in options for customizing visual elements, animations, durations, and dismissing toasts.
Positioning notifications
The Blazor toast notifications component is easily positioned wherever you want using built-in positions or custom axis values (X, Y).
Animation
Users can configure different animations to show or hide the Blazor Toast, and configure the animation duration based on the content length of the notification message and reading time.
Dismiss toasts
Users can dismiss all Blazor toast notification messages through user input or time-outs. Or they can be dismissed by swiping or tapping on notifications.
Toast message types
Users can easily design common Blazor toast notifications using built-in classes such as success, warning, information, and error.
Timing (duration)
The Blazor toast notification component can be configured with a duration time for the complete message to be read in before it is hidden. You can extend the timeout dynamically after focusing on it.
Progress bar
Users can enable a progress bar inside the toast to track the progress of an operation and the expiration of a toast message.
Toast message validation
Users can validate duplicate toast notifications and allow only distinct toast messages on the screen. They can restrict the maximum number of toasts that are displayed. Also, users can prevent toast messages from hiding and make them stick with the screen.
Accessibility
- Fully supports WAI-ARIA accessibility that makes toast accessible to on-screen readers and assistive devices.
- Follows the WCG 2.0 standard in the design of the UI visual elements such as foreground color, background color, line spacing, text, and images.
Other supported frameworks
Toast is also available in JavaScript, Angular, React and Vue frameworks that are built from their own TypeScript libraries. Check out the different Toast platforms from the below links,
Blazor Toast Code Example
Easily get started with the Blazor Toast using a few simple lines of Razor code example as demonstrated below. Also explore our Blazor Toast Example that shows you how to render and configure the Blazor Toast.
@page "/toast/default-functionalities"
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Notifications
@inherits SampleBaseComponent;
<div class="col-lg-12 control-section toast-default-section">
<SfToast ID="toast_default" @ref="ToastObj" Title="Adaptive Tiles Meeting" Content="@ToastContent" Timeout="5000" Icon="e-meeting">
<ToastPosition X="@ToastPosition"></ToastPosition>
</SfToast>
<div class="col-lg-12 col-sm-12 col-md-12 center">
<div id="toastBtnDefault" style="margin: auto;text-align: center">
<button class="e-btn" @onclick="@ShowOnClick">Show Toasts</button>
<button class="e-btn" @onclick="@HideOnClick">Hide All</button>
</div>
</div>
</div>
<style>
#toast_default .e-meeting::before {
content: "\e705";
font-size: 17px;
}
</style>
@code {
SfToast ToastObj;
private string ToastPosition = "Right";
private string ToastContent = "Conference Room 01 / Building 135 10:00 AM-10:30 AM";
private async Task ShowOnClick()
{
await this.ToastObj.ShowAsync();
}
private async Task HideOnClick()
{
await this.ToastObj.HideAsync("All");
}
}Not sure how to create your first Blazor Toast? Our tutorial videos and documentation can help.
I’d love to watch it now I’d love to read it nowBlazor Components – 145+ UI and DataViz Components
Frequently Asked Questions
Why should you choose Syncfusion Blazor Toast?
- Animated notification pop-up.
- Fully customizable timing and progress bar.
- Predefined standard notification types: success, error, warning, and information.
- Small and nonblocking pop-up.
- One of the best Blazor Toast in the market that offers feature-rich UI to interact with the software.
- Simple configuration and API.
- Touch-friendly and responsive UI.
Extensive demos, documentation, and videos to get started quickly with the Blazor Toast component.
Where can I find the Syncfusion Blazor Toast demo?
You can find our Blazor Toast demo here.
Can I download and utilize the Syncfusion Blazor Toast for free?
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
How do I get started with Syncfusion Blazor Toast?
A good place to start would be our comprehensive getting started documentation.
Our Customers Love Us
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.