Ant Design Blazor
?A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly.
Under Other
By ant-design-blazor
?A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly.
Under Other
By ant-design-blazor
Ant Design Blazor
A set of enterprise-class UI components based on Ant Design and Blazor.

[](https://www.nuget.org/packages/AntDesign/)
[](https://www.nuget.org/packages/AntDesign/)
[](https://github.com/ant-design-blazor/ant-design-pro-blazor)
[](https://codecov.io/gh/ant-design-blazor/ant-design-blazor)
[](https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE)
[](https://join.slack.com/t/AntBlazor/shared_invite/zt-etfaf1ww-AEHRU41B5YYKij7SlHqajA)
[](https://h5.dingtalk.com/circle/healthCheckin.html?corpId=dingce91412e5fdea4020aee85826fecb71d&dd651=7b682&cbdbhh=qwertyuiop&origin=11)
[](https://discord.com/invite/jqu3Xeq)
English | 简体中文
WebAssembly static hosting examples:
| Edge / IE | Firefox | Chrome | Safari | Opera | Electron |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Edge 16 / IE 11† | 522 | 57 | 11 | 44 | Chromium 57 |
Due to WebAssembly restriction, Blazor WebAssembly doesn't support IE browser, but Blazor Server supports IE 11† with additional polyfills. See official documentation
Download our latest nightly builds
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.
We have provided the dotnet new
template to create a Boilerplate project out of the box:
bash
$ dotnet new --install AntDesign.Templates
bash
$ 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 | 'wasm' \| 'server' \| 'hosted' | 'wasm' |
| --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 |
bash
$ dotnet add package AntDesign
Program.cs
(WebAssembly)csharp
builder.Services.AddAntDesign();
or Startup.cs
(Server)
csharp
services.AddAntDesign();
wwwroot/index.html
(WebAssembly) or Pages/_Host.cshtml
(Server)```html
```
_Imports.razor
csharp
@using AntDesign
<AntContainer />
component in App.razor
.```
<-- add this component
```
razor
<Button Type="primary">Hello World!</Button>
bash
$ git clone [email protected]: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
Visual Studio 2019 is recommended for development.
Check out this issue to learn about our development plans for 2020.
If you would like to contribute, feel free to create a Pull Request, or give us Bug Report.
This project exists thanks to all the people who contribute.
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.
Scan QR Code with DingTalk
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.
This project is supported by the .NET Foundation.