English | 中文
This project is part of the .NET Foundation and operates under their code of conduct.
- Install .net core sdk Official website
- Install Visual Studio 2022 latest Official website
dotnet 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
- Fork
- Create Feat_xxx branch
- Commit
- Create Pull Request
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.
If this project is helpful to you, please scan the QR code below for a cup of coffee.
Thanks to JetBrains for providing free open source license