Go to file
Argo 97f5992477 !788 docs(#I2A3Q9): update layout/tab AdditionalAssemblies doc
* Merge branch 'dev-tab-add' into dev-docs
* fix: 修复 Tab Add 方法
* docs: Tab 组件增加 AdditionalAssembies 说明
* docs: 增加 AdditionalAssemblies 文档说明
* Merge branch 'dev-tab-wasm' into dev-docs
* fix: 修复 wasm 模式无法获取 GetEntryAssembly() 程序集问题
* docs: 更新 Tabs 示例文档
* Merge branch 'dev-tab' into dev-docs
* refactor: 移除 Task 返回值
* fix: 修复点击关闭小按钮时事件冒泡问题
* fix: 修复关闭 Tab 时更新地址栏
* refactor: 移除 Task.Run
* docs: 增加 UseTabSet 与 AdditionalAssemblies 属性介绍
* docs: 更新 Tab 组件 AdditionalAssemblies 属性
* docs: 移除繁体与德语文化索引
* docs: 移除首页繁体汉字
2020-12-21 00:19:44 +08:00
.gitee !145 feat(#I1IO7V): 增加对话框组件 2020-05-29 00:52:28 +08:00
.github/workflows !774 chore(#I2A035): update github actions 2020-12-19 00:16:18 +08:00
dist !447 doc(#I1T8YQ): 更新 wasm 发布 404 文件 2020-08-30 01:51:55 +08:00
scripts !551 build(#I1WYWT): 增加 Centos 自动部署脚本 2020-09-28 01:47:33 +08:00
src !788 docs(#I2A3Q9): update layout/tab AdditionalAssemblies doc 2020-12-21 00:19:44 +08:00
test/UnitTest !762 license(#I29GUW): 更新文件头开源协议更改为 Apache-2.0 2020-12-15 22:51:34 +08:00
.dockerignore build: 初始化项目 2020-03-02 17:00:55 +08:00
.editorconfig !762 license(#I29GUW): 更新文件头开源协议更改为 Apache-2.0 2020-12-15 22:51:34 +08:00
.gitattributes build: 初始化项目 2020-03-02 17:00:55 +08:00
.gitignore Revert "Prepare SCSS version - Use normal CSS as init (currently without variables, is equal to the current master css)" 2020-12-09 11:35:47 +08:00
.issuetracker build: 更新 Issue Id 正则表达式 2020-07-03 23:38:35 +08:00
.tfignore build: 初始化项目 2020-03-02 17:00:55 +08:00
appveyor.yml build(Appveyor): 更新 Nuget 秘钥 2020-09-04 10:15:19 +08:00
BootstrapBlazor.sln !755 fix(#I295IE): Wasm 目录下工程引用路径不正确 2020-12-13 11:44:16 +08:00
Directory.Build.props !145 feat(#I1IO7V): 增加对话框组件 2020-05-29 00:52:28 +08:00
LICENSE !767 license(#I29PHF): 更新 Apache-2.0 协议内容 2020-12-17 02:31:42 +08:00
README.md !673 doc(#I264OZ): 更新文档关于统一设置 Toast 组件延时消失时间参数 2020-11-21 00:56:50 +08:00
README.zh-CN.md refactor: 更新网站域名 2020-11-19 10:14:35 +08:00

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 (Server) or wwwroot/index.html (WebAssembly)

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    . . .
    <link rel="stylesheet" href="_content/BootstrapBlazor/css/bootstrap.blazor.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.