mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2025-12-06 07:28:50 +08:00
37ab016e2ba3c6e9fdcdc6f227117c7d048f7078
* feat: 增加日期选择按钮 * refactor: 增加逻辑 * refactor: 移除 DateTimePickerButton 组件 * refactor: 重构脚本支持 Button 模式切换 * feat: 增加按钮元素 * doc: 增加多语言 * doc: 更新示例 * doc: 文档格式化 * test: 更新单元测试 * chore: bump version 9.11.5-beta05
Bootstrap Blazor Component
English | 中文
.NET Foundation
This project is part of the .NET Foundation and operates under their code of conduct.
Online Examples
Environment
- Install .net core sdk Official website
- Install Visual Studio 2022 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
Description
Bootstrap 样式的 Blazor UI 组件库,适配移动端支持各种主流浏览器,适配 ABP,同时支持 NET6/NET7/NET8/NET9 交流群 795206915 或者 675147445
Languages
C#
89%
JavaScript
5.2%
SCSS
3.8%
CSS
1.9%
