BootstrapBlazor 9.6.5

Bootstrap Blazor Component

an enterprise-level UI component library based on Bootstrap and Blazor.

This project is part of the .NET Foundation and operates under their Code Of Conduct

License Github build Repo Size Commit Date codecov


Online Examples

website

Quick Installation Guide

Install Package

dotnet add package BootstrapBlazor

Add the following to _Imports.razor

@using BootstrapBlazor.Components

Add the following to the MainLayout.razor

<BootstrapBlazorRoot>
    @Body
</BootstrapBlazorRoot>

Add the following to your HTML head section

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" />

Add the following script at the end of the body

<script src="_content/BootstrapBlazor/js/bootstrap.blazor.bundle.min.js"></script>

Add the following to the relevant sections of Program.cs

builder.Services.AddBootstrapBlazor();

Usage

<Display Value="@_text"></Display>
<Button Text="Button" OnClick="@ClickButton"></Button>

@code {
    private string? _text;
    private void ClickButton(MouseEventArgs e)
    {
        _text = DateTime.Now.ToString();
    }
}

Install CLI Template

  1. Install the template
dotnet new install Bootstrap.Blazor.Templates::*
  1. Create the Boilerplate project with the template
dotnet new bbapp

Code of conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

Showing the top 20 packages that depend on BootstrapBlazor.

Packages Downloads
Uni.Components.Core
Package Description
41
Uni.Components.Core
Package Description
34
Uni.Components.Core
Package Description
32
Uni.Components.Core
Package Description
31
Uni.Components.Core
Package Description
30
Uni.Components.Core
Package Description
20
Uni.Components.Core
Package Description
18
Uni.Components.Core
Package Description
17
Uni.Components.Core
Package Description
13
BootstrapBlazor.DockView
Bootstrap UI components extensions of Dock View
13
Uni.Components.Core
Package Description
12
Uni.Components.Core
Package Description
11

https://github.com/dotnetcore/BootstrapBlazor/releases?wt.mc_id=DT-MVP-5004174

Version Downloads Last updated
9.6.5 14 8/2/2025
9.4.5-beta01 8 3/5/2025
9.3.1-beta32 6 2/22/2025
9.3.1-beta31 6 2/22/2025
9.3.1-beta23 6 2/19/2025
9.3.1-beta22 6 2/19/2025
9.3.1-beta20 8 2/18/2025
9.3.1-beta19 30 2/17/2025
9.3.1-beta17 9 2/15/2025
9.3.1-beta16 11 2/13/2025
9.3.1-beta15 8 2/13/2025
9.3.1-beta14 8 2/13/2025
9.3.1-beta13 9 2/12/2025
9.3.1-beta12 11 2/12/2025
9.3.1-beta11 12 2/11/2025
9.3.1-beta05 7 1/31/2025
9.3.1-beta04 14 1/30/2025
9.3.1-beta03 9 1/30/2025
9.2.9-beta02 13 1/21/2025
8.9.2-beta11 9 9/12/2024
8.7.3-beta01 13 7/16/2024