Bootstrap 样式的 Blazor UI 组件库,适配移动端支持各种主流浏览器,适配 ABP,同时支持 NET5/NET6/NET7 交流群 795206915 或者 675147445
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Argo 2b6cba83ae !642 doc(#I247GZ): 更新 github 英文版文档
* doc: 更新项目模板文档使用说明
* doc: 更新文档
* doc: 更新英文版 readme 文档
4 years ago
.gitee !145 feat(#I1IO7V): 增加对话框组件 5 years ago
.github/workflows !637 feat(#I23GV3): 移除项目模板工程到私有库 4 years ago
dist !447 doc(#I1T8YQ): 更新 wasm 发布 404 文件 4 years ago
scripts !551 build(#I1WYWT): 增加 Centos 自动部署脚本 4 years ago
src !641 doc(#I243NM): 更新项目模板文档说明 4 years ago
test/UnitTest !619 feat(#I22PTA): wasm 支持本地化功能 4 years ago
.dockerignore build: 初始化项目 5 years ago
.editorconfig build: 初始化项目 5 years ago
.gitattributes build: 初始化项目 5 years ago
.gitignore build: 初始化项目 5 years ago
.issuetracker build: 更新 Issue Id 正则表达式 5 years ago
.tfignore build: 初始化项目 5 years ago
BootstrapBlazor.sln !637 feat(#I23GV3): 移除项目模板工程到私有库 4 years ago
Directory.Build.props !145 feat(#I1IO7V): 增加对话框组件 5 years ago
LICENSE doc: 增加 License 5 years ago
README.md !642 doc(#I247GZ): 更新 github 英文版文档 4 years ago
README.zh-CN.md doc: 更新捐助信息 5 years ago
appveyor.yml build(Appveyor): 更新 Nuget 秘钥 4 years ago

README.md

Bootstrap Blazor Component

A set of enterprise-class UI components based on Bootstrap and Blazor.

Github build Nuget Nuget Github Repo Size Commit Date


English | 中文

Features

  • 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 Standard 2.1 based, with direct reference to the rich .NET ecosystem.
  • Seamless integration with existing ASP.NET Core MVC and Razor Pages projects.

Online Examples

website website

Installation Guide

Create a new project from the dotnet new template

  1. Install the template

dotnet new -i Bootstrap.Blazor.Templates::*

  1. Create the Boilerplate project with the template

dotnet new bbapp

Import Bootstrap Blazor into an existing project

  1. Go to the project folder of the application and install the Nuget package reference

dotnet add package BootstrapBlazor

  1. Add the stylesheet javascripts file to your main index file - ~/Pages/_Host.cshtml

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    . . .
    <link rel="stylesheet" href="_content/BootstrapBlazor.Chart/css/bootstrap.blazor.chart.bundle.min.css">
</head>
<body>
    . . .
    <script src="_framework/blazor.server.js"></script>
    <script src="_content/BootstrapBlazor/js/bootstrap.blazor.bundle.min.js"></script>
</body>
</html>
  1. Open the ~/Startup.cs file in the and register the Bootstrap Blazor service:

C#

namespace BootstrapBlazorAppName
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            //more code may be present here
            services.AddBootstrapBlazor(); 
        }

        //more code may be present here
    }
}

Visual Studio Integration

To create a new Bootstrap Blazor UI for Blazor application, use the Create New Project Wizard. The wizard detects all installed versions of Bootstrap Blazor for Blazor and lists them in the Version combobox—this enables you to start your project with the desired version. You can also get the latest version to make sure you are up to date.

  1. Get the Wizard

To use the Create New Project Wizard, install the Bootstrap Blazor UI for Blazor Visual Studio Extensions. You can get it from the:

  • Visual Studio Marketplace (for Windows)
  1. Start the Wizard

To start the wizard, use either of the following approaches

Using the Project menu:

  • Click File > New > Project.
  • Find and click the C# Blazor Application option (you can use the search, or filter by Blazor templates).
  • Follow the wizard.

Supported browsers

chrome firefox edge ie Safari Andriod oper

Mobile devices

ios Andriod windows

Chrome Firefox Safari Android Browser & WebView Microsoft Edge
iOS Supported Supported Supported N/A Supported
Android Supported Supported N/A Android v5.0+ supported Supported
Windows 10 Mobile N/A N/A N/A N/A Supported

Desktop browsers

macOS linux windows

Chrome Firefox Internet Explorer Microsoft Edge Opera Safari
Mac Supported Supported N/A N/A Supported Supported
Linux Supported Supported N/A N/A N/A N/A
Windows Supported Supported Supported, IE11+ Supported Supported Not supported

Screenshots

登录可查看 登录可查看 登录可查看 登录可查看 登录可查看 登录可查看 登录可查看

Contribution

  1. Fork
  2. Create Feat_xxx branch
  3. Commit
  4. Create Pull Request

Donate

If this project is helpful to you, please scan the QR code below for a cup of coffee.