- Enterprise-class UI designed for web applications.
- A set of high-quality Blazor components out of the box.
- Supports WebAssembly-based client-side and SignalR-based server-side UI event interaction.
- Supports Progressive Web Applications (PWA).
- Build with C#, a multi-paradigm static language for an efficient development experience.
- .NET 6.0, with direct reference to the rich .NET ecosystem.
- Seamless integration with existing ASP.NET Core MVC and Razor Pages projects.
- Install .net core sdk Official website
- Install Visual Studio lastest Official website
git clone https://github.com/dotnetcore/BootstrapBlazor.git
cd BootstrapBlazor/src/BootstrapBlazor.Server
dotnet rundotnet add package BootstrapBlazor
@using BootstrapBlazor.Components
<BootstrapBlazorRoot>
@Body
</BootstrapBlazorRoot>it's either index.html or _Layout.cshtml/_Host.cshtml/App.razor depending on whether you're running WebAssembly or Server
<link rel="stylesheet" href="_content/BootstrapBlazor/css/bootstrap.blazor.bundle.min.css" /><script src="_content/BootstrapBlazor/js/bootstrap.blazor.bundle.min.js"></script>builder.Services.AddBootstrapBlazor();<Display Value="@_text"></Display>
<Button Text="Button" OnClick="@ClickButton"></Button>
@code {
private string? _text;
private void ClickButton(MouseEventArgs e)
{
_text = DateTime.Now.ToString();
}
}- Install the template
dotnet new install Bootstrap.Blazor.Templates::*
- Create the Boilerplate project with the template
dotnet new bbapp