![]() |
VOOZH | about |
dotnet add package AntDesign --version 1.6.2
NuGet\Install-Package AntDesign -Version 1.6.2
<PackageReference Include="AntDesign" Version="1.6.2" />
<PackageVersion Include="AntDesign" Version="1.6.2" />Directory.Packages.props
<PackageReference Include="AntDesign" />Project file
paket add AntDesign --version 1.6.2
#r "nuget: AntDesign, 1.6.2"
#:package AntDesign@1.6.2
#addin nuget:?package=AntDesign&version=1.6.2Install as a Cake Addin
#tool nuget:?package=AntDesign&version=1.6.2Install as a Cake Tool
<p align="center"> <a href="https://yangshunjie.com/ant-design-blazor/"> <img src="https://raw.githubusercontent.com/ant-design-blazor/ant-design-blazor/master/logo.svg?sanitize=true"> </a> </p>
<h1 align="center">Ant Design Blazor</h1>
<div align="center">
A rich set of enterprise-class UI components based on Ant Design and Blazor.
👁 Build
👁 AntDesign
👁 AntDesign
👁 AntDesign.Templates
👁 codecov
👁 AntDesign
👁 Ding Talk Group
👁 Discord Server
</div>
English |
WebAssembly static hosting on:
Due to WebAssembly restriction, Blazor WebAssembly doesn't support IE browser, but Blazor Server supports IE 11† with additional polyfills. See official documentation.
From .NET 5, IE 11 is no longer officially supported. See Blazor: Updated browser support. Unofficial support is provided by Blazor.Polyfill community project.
Release: 👁 AntDesign
Nightly: 👁 AntDesign
Regularly synchronize with Official Ant Design specifications, you can check the sync logs online.
Therefore, you can use the custom theme styles of Ant Design directly.
Before the 1.0 release, we will only sync antd 4.x styles.
We have provided the dotnet new template to create a Boilerplate project out of the box:
Install the template
$ dotnet new --install AntDesign.Templates
Create the Boilerplate project with the template
$ dotnet new antdesign -o MyAntDesignApp
Options for the template:
| Options | Description | Type | Default |
|---|---|---|---|
-f | --full |
If specified, generates all pages of Ant Design Pro | bool | false |
-ho | --host |
Specify the hosting model | 'webapp' | 'wasm' | 'server' | 'webapp' |
--styles |
Whether use NodeJS and Less to compile your custom themes. | css | less |
css |
--no-restore |
If specified, skips the automatic restore of the project on create | bool | false |
Go to the project folder of the application and install the Nuget package reference
$ dotnet add package AntDesign
Register the services in Program.cs
builder.Services.AddAntDesign();
or Startup.cs
services.AddAntDesign();
Add namespace in _Imports.razor
@using AntDesign
Introduce CSS and JS files in appropriate places. The WebApp project was introduced in App.razor, and the WebAssembly project was introduced in index.html
<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet">
<script src="_content/AntDesign/js/ant-design-blazor.js"></script>
To display the pop-up component dynamically, you need to add the <AntContainer /> component in App.razor.
<Routes /> for interactivity.<Routes @rendermode="RenderMode.InteractiveAuto" /> <-- specify the rendermode ✨
+ <AntContainer @rendermode="RenderMode.InteractiveAuto" /> <-- add this component ✨
<Router AppAssembly="@typeof(MainLayout).Assembly">
<Found Context="routeData">
<RouteView RouteData="routeData" DefaultLayout="@typeof(MainLayout)" />
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<Result Status="404" />
</LayoutView>
</NotFound>
</Router>
+ <AntContainer /> <-- add this component ✨
Finally, it can be referenced in the .razor component!
<Button Type="@ButtonType.Primary">Hello World!</Button>
Click the button below to start a new workspace for development for free.
Install .NET Core SDK 9.0.100 or later.
Install Node.js (only for building style files and interoperable TypeScript files)
Clone to local development
$ git clone https://github.com/ant-design-blazor/ant-design-blazor.git
$ cd ant-design-blazor
$ npm install
$ dotnet build ./site/AntDesign.Docs.Build/AntDesign.Docs.Build.csproj
$ npm start
Visit https://localhost:5001 in your supported browser and check local development documentation for details.
Visual Studio 2022 is recommended for development.
Check out this issue to learn about our development plans for the 1.0 release.
You can also find the latest news about the features we will implement in the future with antd5.0 style.
If you would like to contribute, feel free to create a Pull Request, or give us Bug Report.
This project is an MIT-licensed open source project. In order to achieve better and sustainable development of the project, we expect to gain more backers. We will use the proceeds for community operations and promotion. You can support us in any of the following ways:
We will put the detailed donation records on the backer list.
If you encounter any problems in the process, feel free to ask for help via following channels. We also encourage experienced users to help newcomers.
<details> <summary>Scan QR Code with DingTalk</summary> <img src="https://raw.githubusercontent.com/ant-design-blazor/ant-design-blazor/master/docs/assets/dingtalk.jpg" width="300"> </details>
This project exists thanks to all the people who contribute.
<a href="https://github.com/ant-design-blazor/ant-design-blazor/graphs/contributors"> <img src="https://contrib.rocks/image?repo=ant-design-blazor/ant-design-blazor&max=1000&columns=15&anon=1" /> </a>
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.
This project is supported by the .NET Foundation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on AntDesign:
| Package | Downloads |
|---|---|
|
AntDesign.ProLayout
Ant Design Pro components for Blazor |
|
|
Sitko.Core.Blazor.AntDesign
Sitko.Core is a set of libraries to help build .NET Core applications fast |
|
|
AntDesign.TestKit
Package Description |
|
|
Egea.Extensions.Razor
Package Description |
|
|
AntDesign.Components.Authentication
🌈 An authentication extensions components for Ant Design Blazor library. |
Showing the top 16 popular GitHub repositories that depend on AntDesign:
| Repository | Stars |
|---|---|
| LANCommander/LANCommander | |
|
dashiell-zhang/NetEngine
基于 .Net 框架搭建的一个基础项目结构
|
|
|
chunliu/AzureDesignStudio
A web app that helps you create the architecture design diagram for your Azure solutions and automatically generate IaC code from it.
|
|
|
known/Known
Known 是基于 Blazor 轻量级、跨平台、低代码、易扩展的插件开发框架。
|
|
|
arleypadua/PKHeX.Everywhere
Cross platform tools for interacting with Pokemon save files. The web version runs everywhere and the CLI works with Mac OS, Linux and Windows
|
|
|
YukiCoco/CheapSteam
Cheap Steam 为您提供 STEAM 与 BUFF 的饰品价格对比数据.
|
|
|
thangchung/northwind-dotnet
A full-stack .NET 6 Microservices build on Minimal APIs and C# 10
|
|
|
weibaohui/blazork8s
manage k8s using c# blazor enhance by chatgpt ,try something new !使用blazor技术开发的内置OpenAI GPT的k8s 管理界面
|
|
|
BeiYinZhiNian/Caviar-Blazor
Caviar-Blazor是采用Blazor + Ant Design的后台管理框架,框架包含了后台管理的常用功能,简单大方的界面,拥有数据权限、字段权限、API权限等,可精细化控制任意元素,而且更好的兼容手机端,让开发者更专注于业务上的开发。
|
|
|
LegacyGwent/LegacyGwent
复刻巫师之昆特牌的内测版本
|
|
|
ant-design-blazor/ant-design-charts-blazor
A Blazor chart library, based on G2Plot
|
|
|
ant-design-blazor/blazor-pro-components
Pro Components of Blazor. 🏆 Use Ant Design like a Pro!
|
|
|
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
|
|
|
realLiangshiwei/Lsw.Abp.AntDesignUI
An Abp Blazor Theme based Ant-Design-Blazor
|
|
|
hzy-6/hzy-admin
前后端分离权限管理系统基架! 数据权限、按钮权限、动态菜单、动态任务调度、动态WebApi、定时标记 [Scheduled("0/5 * * * * ?")] 、代码生成
|
|
|
KnightYyj/QuartzCore.Blazor
QuartzCore.Blazor作业管理平台,实践ant-design-blazor和FreeSql
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-nightly-250526143149 | 3,422 | 5/26/2025 |
| 2.0.0-nightly-250108132511 | 1,214 | 1/8/2025 |
| 1.6.2 | 150 | 6/16/2026 |
| 1.6.1 | 29,583 | 4/16/2026 |
| 1.6.0 | 25,383 | 2/10/2026 |
| 1.5.1 | 27,654 | 12/17/2025 |
| 1.5.0 | 152,549 | 11/3/2025 |
| 1.5.0-alpha | 560 | 9/17/2025 |
| 1.4.3 | 56,466 | 7/14/2025 |
| 1.4.2 | 8,625 | 6/30/2025 |
| 1.4.1.1 | 6,423 | 6/16/2025 |
| 1.4.1 | 4,300 | 6/15/2025 |
| 1.4.0 | 29,341 | 5/7/2025 |
| 1.3.2 | 25,330 | 4/6/2025 |
| 1.3.1 | 5,239 | 4/2/2025 |
| 1.3.0 | 4,467 | 3/30/2025 |
| 1.2.1 | 165,858 | 2/26/2025 |
| 1.2.0 | 24,321 | 2/2/2025 |
| 1.1.4 | 42,359 | 1/24/2025 |
| 1.1.3 | 4,878 | 1/15/2025 |