Blazored.Toast
1.0.0
Prefix Reserved
See the version list below for details.
dotnet add package Blazored.Toast --version 1.0.0
NuGet\Install-Package Blazored.Toast -Version 1.0.0
<PackageReference Include="Blazored.Toast" Version="1.0.0" />
paket add Blazored.Toast --version 1.0.0
#r "nuget: Blazored.Toast, 1.0.0"
// Install Blazored.Toast as a Cake Addin #addin nuget:?package=Blazored.Toast&version=1.0.0 // Install Blazored.Toast as a Cake Tool #tool nuget:?package=Blazored.Toast&version=1.0.0
Blazored Toast
This is a JavaScript free toast implementation for Blazor and Razor Components application.
Getting Setup
You can install the package via the NuGet package manager just search for Blazored.Toast. You can also install via PowerShell using the following command.
Install-Package Blazored.Toast
Or via the dotnet CLI.
dotnet add package Blazored.Toast
1. Register Services
First, you will need to add the following line to your applications Startup.ConfigureServices
method.
public void ConfigureServices(IServiceCollection services)
{
services.AddBlazoredToast();
}
2. Add Imports
Second, add the following to your _ViewImports.cshtml
@using Blazored
@using Blazored.Toast.Services
@addTagHelper *, Blazored.Toast
3. Register Toasts Component
Third and finally you will need to register the <Toasts />
component in your applications MainLayout.cshtml.
Usage
In order to show a toast, you have to inject the IToastService
into the component or service you want to trigger a toast. You can then call the ShowToast
method passing in the toast level you require along with the message to display and an optional heading.
@page "/toastdemo"
@inject IToastService toastService
<h1>Toast Demo</h1>
To show a toast just click one of the buttons below.
<button class="btn btn-info" onclick="@(() => toastService.ShowToast(ToastLevel.Info, "I'm an INFO message"))">Info Toast</button>
<button class="btn btn-success" onclick="@(() => toastService.ShowToast(ToastLevel.Success, "I'm a SUCCESS message with a custom title", "Congratulations!"))">Success Toast</button>
<button class="btn btn-warning" onclick="@(() => toastService.ShowToast(ToastLevel.Warning, "I'm a WARNING message"))">Warning Toast</button>
<button class="btn btn-danger" onclick="@(() => toastService.ShowToast(ToastLevel.Error, "I'm an ERROR message"))">Error Toast</button>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.Blazor.Browser (>= 0.7.0)
NuGet packages (17)
Showing the top 5 NuGet packages that depend on Blazored.Toast:
Package | Downloads |
---|---|
Blazored.Toast.TestExtensions
A testing library to provide helper extensions for Blazored.Toast |
|
BlazingApple.Components
BlazingApple is a collection of business objects and corresponding components to speed application development. BlazingApple.Components provides a set of core components to easily create beautiful applications |
|
Bluefish.Blazor
A collection of useful Razor components |
|
Lookif.UI.Component
Some predefined components. It contains: *Crud page *Form *Dropdown - Selective *Grid ---- Blazored.Modal and Blazored.Toast are used in this project. |
|
chd.UI.Base.Client
Package Description |
GitHub repositories (10)
Showing the top 5 popular GitHub repositories that depend on Blazored.Toast:
Repository | Stars |
---|---|
dotnet-architecture/eShopOnDapr
A sample .NET distributed application based on eShopOnContainers, powered by Dapr.
|
|
DragoQCC/HardHatC2
A C# Command & Control framework
|
|
MUnique/OpenMU
This project aims to create an easy to use, extendable and customizable server for a MMORPG called "MU Online".
|
|
hamed-shirbandi/TaskoMask
Task management system based on .NET 8 with Microservices, DDD, CQRS, Event Sourcing and Testing Concepts
|
|
CuriousDrive/BlazingChat
BlazingChat is a Blazor WebAssembly app developed by CuriousDrive for the community. This is a sample application for developers who are just getting started with Blazor.
|
Version | Downloads | Last updated |
---|---|---|
4.2.1 | 295,735 | 3/19/2024 |
4.2.0 | 129,156 | 2/19/2024 |
4.1.0 | 479,178 | 2/23/2023 |
4.0.0 | 103,224 | 1/4/2023 |
3.2.2 | 1,185,583 | 10/8/2021 |
3.2.1 | 2,916 | 10/8/2021 |
3.1.2 | 682,558 | 5/20/2020 |
3.1.1 | 25,694 | 5/9/2020 |
3.1.0 | 5,614 | 5/8/2020 |
3.0.0 | 15,529 | 5/3/2020 |
2.0.9 | 41,109 | 2/19/2020 |
2.0.8 | 24,562 | 12/13/2019 |
2.0.7 | 9,539 | 9/25/2019 |
2.0.6 | 2,565 | 9/17/2019 |
2.0.5 | 578 | 9/5/2019 |
2.0.4 | 592 | 8/13/2019 |
2.0.3 | 973 | 7/25/2019 |
2.0.2 | 366 | 7/25/2019 |
2.0.1 | 391 | 7/24/2019 |
2.0.0 | 549 | 7/6/2019 |
1.2.1 | 956 | 6/13/2019 |
1.2.0 | 1,386 | 5/31/2019 |
1.1.4 | 1,387 | 5/17/2019 |
1.1.3 | 1,569 | 4/26/2019 |
1.1.2 | 1,336 | 4/25/2019 |
1.1.1 | 1,337 | 4/3/2019 |
1.1.0 | 1,345 | 3/30/2019 |
1.0.3 | 1,467 | 3/9/2019 |
1.0.2 | 1,503 | 2/9/2019 |
1.0.1 | 1,478 | 1/20/2019 |
1.0.0 | 1,876 | 1/20/2019 |