BootstrapBlazor
BootstrapBlazor is an open-source C# project in the ui components space with 4.8k GitHub stars. The repository is actively maintained, with recent commits.
Apache-2.0Permissive — free to use in commercial and proprietary software, with attribution.View license →
Production readiness
4/5- Actively maintainedCommits in the last 6 months
- No known vulnerabilitiesNot yet scanned
- Clear, usable licenseApache-2.0 (permissive)
- Proven adoptionWidely used
- Has documentationDocumentation indexed
English | 中文
.NET Foundation
Online Examples
Environment
Install .net SDK Official website
Install Visual Studio latest Official 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
Install the template
dotnet new install Bootstrap.Blazor.Templates::*
Create the Boilerplate project with the template
dotnet new bbapp
Contribution
Fork
Create Feat_xxx branch
Commit
Create Pull Request
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.
Donate
If this project is helpful to you, please scan the QR code below for a cup of coffee.
Sponsor
Thanks to JetBrains for providing free open source license
On this page
- .NET Foundation
- Online Examples
- Environment
- Quick Installation Guide
- Install Package
- Add the following to _Imports.razor
- Add the following to the MainLayout.razor
- Add the following to your HTML head section
- Add the following script at the end of the body
- Add the following to the relevant sections of Program.cs
- Usage
- Install CLI Template
- Contribution
- Code of Conduct
- Donate
- Sponsor