Go to file
Argo Zhang 227fa5ed33
Some checks are pending
Build docker image / docker (push) Waiting to run
Package to Nuget / pack (push) Waiting to run
feat(Sort): Sort extension method support IDynamicObject (#4726)
* feat: 增加 CastAndOrder 方法

* test: 更新单元测试

* chore: bump version 9.0.2-beta01
2024-11-23 11:58:08 +00:00
.gitee chore(Gitee): update Issue template (#2990) 2024-02-25 17:10:17 +08:00
.github doc(Tab): update NotAuthorized parameter documentation (#4613) 2024-11-05 18:51:46 -08:00
docs chore: update comment label action and repro document (#399) 2023-01-27 16:36:26 +08:00
localization doc(Localization): update zh-TW json (#3933) 2024-07-27 17:57:38 +08:00
scripts doc(Reboot): update Reboot notification (#3084) 2024-03-17 19:46:34 +08:00
src feat(Sort): Sort extension method support IDynamicObject (#4726) 2024-11-23 11:58:08 +00:00
test feat(Sort): Sort extension method support IDynamicObject (#4726) 2024-11-23 11:58:08 +00:00
.dockerignore
.editorconfig feat(BluetoothDevice): add GetCurrentTime method (#4501) 2024-10-22 16:01:29 +08:00
.filenesting.json !2671 feat(#I537X5): remove zxing.min.js from bundle.min.js 2022-04-18 04:48:38 +00:00
.gitattributes doc(Web): use css variable (#3284) 2024-04-14 12:12:07 +08:00
.gitignore feat(RTL): support RTL mode (#4597) 2024-11-02 10:35:06 +08:00
.issuetracker feat(Dock): add HasHeaders parameter (#3315) 2024-04-19 13:31:28 +08:00
.tfignore
BootstrapBlazor.sln doc(Readme): update readme documentation (#4714) 2024-11-22 00:27:20 +00:00
CHANGELOG.md doc(ChangeLog): update changelog doc (#2272) 2023-10-15 22:51:53 +08:00
CHANGELOG.zh-CN.md doc(ChangeLog): update changelog doc (#2272) 2023-10-15 22:51:53 +08:00
CODE_OF_CONDUCT.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 2023-07-14 21:19:48 +08:00
CONTRIBUTING.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 2023-07-14 21:19:48 +08:00
Directory.Build.props feat(TagHelper): add BootstrapBlazor.TagHelper package (#3278) 2024-04-13 21:09:29 +08:00
exclusion.dic doc(Install): remove visual studio 2019 (#4670) 2024-11-16 01:36:44 +00:00
Framework.props chore(Target): add version props (#4705) 2024-11-20 13:15:46 +08:00
LICENSE chore(foundation): add dotnet foundation information (#4499) 2024-10-22 10:47:05 +08:00
NuGet.Config chore(Nuget): remove nuget.blazor.zone source (#2353) 2023-11-12 12:04:20 +08:00
README.md doc(Readme): update readme documentation (#4714) 2024-11-22 00:27:20 +00:00
README.zh-CN.md doc(Readme): update readme documentation (#4714) 2024-11-22 00:27:20 +00:00
SECURITY.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 2023-07-14 21:19:48 +08:00
Version.props chore(Target): add version props (#4705) 2024-11-20 13:15:46 +08:00

Bootstrap Blazor Component

Bootstrap Blazor is an enterprise-level UI component library based on Bootstrap and Blazor.

License Nuget Nuget Repo Size Commit Date Github build codecov

English | 中文


.NET Foundation

This project is part of the .NET Foundation and operates under their code of conduct.

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.
  • Supports NET5. (Server-Side, WASM)
  • 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 install Bootstrap.Blazor.Templates::*

  1. Create the Boilerplate project with the template

dotnet new bbapp

Install Bootstrap Blazor Project Template

  1. Download Project Template

Microsoft Market link

  1. Double Click BootstrapBlazor.UITemplate.vsix

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

Toggle Toast Upload Upload2 Bar Pei Doughnut

Contribution

  1. Fork
  2. Create Feat_xxx branch
  3. Commit
  4. 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.