SAPBlazorAlert 1.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SAPBlazorAlert --version 1.9.0                
NuGet\Install-Package SAPBlazorAlert -Version 1.9.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SAPBlazorAlert" Version="1.9.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SAPBlazorAlert --version 1.9.0                
#r "nuget: SAPBlazorAlert, 1.9.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SAPBlazorAlert as a Cake Addin
#addin nuget:?package=SAPBlazorAlert&version=1.9.0

// Install SAPBlazorAlert as a Cake Tool
#tool nuget:?package=SAPBlazorAlert&version=1.9.0                

SAPBlazorAlert

Full Css + Blazor Library for creating alert like SweetAlert without any js file.

Demo :

Demo CountPages alpha

Usage
  1. Add SAPBlazorAlert To Your Project
PM> Install-Package SAPBlazorAlert -Version 1.9.0
  1. Add stylesheets either in your _host.cshtml (server-side blazor) or index.html (client-side blazor)
<link href="_content/SAPBlazorAnimate/animate.min.css" rel="stylesheet" />
<link href="_content/SAPBlazorAlert/style.css" rel="stylesheet" />

TIP : by adding this component , you will install another component that u can animate elements easy. More info at end of article.
  1. Add This Line in _imports.razor
@using SAPBlazorAlert
@using SAPBlazorAnimate

<hr />

Let's Create an alert :
<button class="btn btn-info" @onclick="() => this.Alert1.ShowAlert()">
    show alert 1
</button>

<SAPAlertBox @ref="Alert1"
             AlertBoxSize="SAPAlertBoxSize.Small"
             FooterText="created by SOROUSH ASADI"
             SAPAlertType="@SAPAlertType.Info"
             AnimationType="@AnimateBook.ZoomEntrances.ZoomIn.Fast()"
             Title="Normal Alert">
    <p>

        you can set your alert body here ,
        you can add buttons , or tables and any data u want.

        below you can add any action and event u want
    </p>
    <button @onclick="() => this.Alert1.HideAlert()" class="btn btn-info">
        Ok , i got it
    </button>

</SAPAlertBox>
Define a paremeter in code section for alert show control
@code{

    public SAPAlertBox Alert1;



}
what is AnimationType ?

you can set an animation for your alert reveal , for access to animation just use "@AnimationBook" static class. you can pass animation reveal speed just after animation name. if yout didnt select speed , it weill be at default.

Alert Types
None (doesnt show any image)
Info
Success
Danger
Warning
Custom ( you can set your img or svg on  CustomAlertTypeImage="")

<hr />

status

you can use Toast by this component

in your page register this element for toast container

<SAPToastArea 
              
              @ref="ToastArea"
              ToastAreatPosition="@SAPToastAreatPosition.Right"
              SAPToastDirection="SAPToastDirection.Column"
              AnimationType="@AnimateBook.Specials.JackInTheBox"
             >

</SAPToastArea>
Define a paremeter in code section for toast show control
@code{

    public SAPToastArea ToastArea;


}
To create toast use this method
@code{

    public SAPToastArea ToastArea;

    void CreateToast()
    {
        var toast = new SAPToast
        {
            Title = "sample text for toast , close after 10 sec",
            AlertType = SAPAlertType.Info,
            AutoCloseDelay= TimeSpan.FromSeconds(10)
        };

        ToastArea.CreateToast(toast);
    }

}

this project used SAPBlazorAnimate (animate.css blazor version)

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.9.2 4,351 12/20/2020
1.9.1 1,544 2/12/2020
1.9.0 457 2/12/2020
1.4.1 504 2/8/2020
1.4.0 492 1/28/2020
1.3.0 480 1/25/2020
1.2.0 596 1/23/2020
1.1.0 426 1/23/2020
1.0.0 486 1/22/2020
0.1.0 478 1/22/2020
0.0.6 552 1/18/2020
0.0.5 540 1/18/2020
0.0.4 524 1/18/2020
0.0.3 463 1/18/2020
0.0.2 471 1/17/2020
0.0.1 461 1/17/2020

create alert and toast in blazor app without any js library with great animations.