Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

Blazorise

> 前端框架
Open source

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.

3.5K stars0 likes1 views
WebsiteGitHub

About

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.

Blazorise: Blazor UI Components for .NET

Blazorise is a source-available Blazor UI component library for building modern .NET web applications in C#. It provides a consistent, strongly-typed component API across popular CSS frameworks, allowing you to build with Bootstrap 5, Tailwind CSS, Bulma, Material, AntDesign, or Fluent UI 2 without rewriting your application.

Highlights

  • Provider-agnostic components with multiple CSS framework providers.
  • C#-first development with a consistent API across providers.
  • Works in Blazor WebAssembly and Blazor Server apps.
  • Optional commercial themes, blocks, and priority support.

Commercial licensing

Blazorise is dual-licensed. Use is governed by the terms in LICENSE.md or a commercial license, depending on your scenario. For teams that need premium assets and support, commercial subscriptions are available.

Commercial subscriptions include:

  • Access to Blazorise Themes.
  • Access to Blazorise Blocks.
  • Premium support via Blazorise Support forum.
  • Dedicated customer support with response times of either 24 or 16 hours, depending on plan.
  • Priority fixes and feature requests.

* Some features may be exclusive to specific subscription tiers.

Supporting Blazorise

Blazorise is a source-available project, and its ongoing development is made possible through the support of its partners, subscribers, and community contributors.

Special Partners

    </a>
  </td>
  <td align="center" valign="middle">
    <a href="https://www.pebble.tv/" target="_blank">
      
    </a>
  </td>
</tr>
<tr></tr>

Demos

Blazor WebAssembly

  • Tailwind Demo
  • Bootstrap 4 Demo
  • Bootstrap 5 Demo
  • Material Demo
  • Bulma Demo
  • AntDesign Demo
  • Fluent 2 Demo

Blazor Server

  • Bootstrap Demo

Documentation

For full documentation, component API references, and detailed guides, visit the Blazorise official documentation pages.

Continue reading below for a quick start guide.

Installation

Prerequisites

Before you continue, make sure you have a recent .NET SDK and a supported IDE (Visual Studio or VS Code). Visit the official Blazor site to learn more.

Provider packages

There are currently 7 provider packages, one per supported CSS framework.

Available Blazorise packages are:

- Blazorise.Tailwind
- Blazorise.Bootstrap
- Blazorise.Bootstrap5
- Blazorise.Bulma
- Blazorise.Material
- Blazorise.AntDesign
- Blazorise.FluentUI2

This guide shows how to set up Blazorise with Bootstrap 5 and FontAwesome 6 icons. To set up Blazorise for other CSS frameworks, refer to the Usage page in the documentation.

1. NuGet packages

Install a provider package and any icon package you want to use. Example for Bootstrap 5 and FontAwesome:

bash
dotnet add package Blazorise.Bootstrap5

And FontAwesome icon package:

bash
dotnet add package Blazorise.Icons.FontAwesome

2. Source files

Add the following to index.html (Blazor WebAssembly), _Host.cshtml (Blazor Server), or App.razor (.NET 8+ Blazor Web App) in the head section.

xml
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
<link href="_content/Blazorise.Icons.FontAwesome/v6/css/all.min.css" rel="stylesheet">

<link href="_content/Blazorise/blazorise.css?v=2.3.1.0" rel="stylesheet" />
<link href="_content/Blazorise.Bootstrap5/blazorise.bootstrap5.css?v=2.3.1.0" rel="stylesheet" />

The ?v=2.3.1.0 query string matches the current Blazorise package version (2.2.3) and is used for cache busting. Update it whenever you upgrade Blazorise packages. If you use a different provider, swap the Bootstrap CSS and provider-specific Blazorise CSS file accordingly.

2.1 JavaScript resources

Blazorise loads any additional JavaScript it needs dynamically once a component needs it. Make sure the resources are available and served relative to the app root. For Blazor Server, enable static files with app.UseStaticFiles();.

If you're having any difficulties, please refer to the following issues:

  • #3122
  • #3150

We are also aware that there might need to be extra setup when dealing with PWA and offline capabilities if you want your app to remain responsive. Please check our PWA docs for more information.

3. Usings

In your main _Imports.razor, add:

cs
@using Blazorise

4. Service registration

Add the following lines to the relevant sections of Program.cs.

cs
using Blazorise;
using Blazorise.Bootstrap5;
using Blazorise.Icons.FontAwesome;
cs
builder.Services
  .AddBlazorise()
  .AddBootstrap5Providers()
  .AddFontAwesomeIcons();

Examples

Counter page

razor
@page "/counter"

<Heading Size="HeadingSize.Is1">Counter</Heading>

<Paragraph>Current count: @currentCount</Paragraph>

<Button Color="Color.Primary" Clicked="IncrementCount">Click me</Button>

@code {
    private int currentCount;

    private void IncrementCount()
    {
        currentCount++;
    }
}

Simple form

razor
@page "/profile"

<Heading Size="HeadingSize.Is3">Profile</Heading>

<TextInput @bind-Value="displayName" Placeholder="Ada Lovelace" />

<Button Color="Color.Primary" Clicked="Save">Save</Button>

<Alert Color="Color.Success" Visible="isSaved">
    Saved!
</Alert>

@code {
    private string displayName = string.Empty;
    private bool isSaved;

    private void Save()
    {
        isSaved = true;
    }
}

Development builds

We release a development version of Blazorise on a regular basis. This version is available on the MyGet feed. This release is not recommended for production use, but it's a great way to test the latest features and bug fixes and give us feedback ahead of the next release.

Contributing

We welcome contributions and any suggestions or feature requests you might have. Contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. This will be signed once you submit a PullRequest on our repository. For details about our CLA, please visit: Contributor License Agreement.

For our code conventions and guidelines please visit: Contributing Guide

Copyright

Copyright (c) Megabit d.o.o.

Dual-licensed. See LICENSE.md.

Issues· 72 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#antdesignasp-net-coreblazorblazor-components

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架