Radzen Blazor组件

Radzen Blazor 组件之家。「The home of the Radzen Blazor components.」

Github星跟踪图

Radzen Blazor Components

See Online Demos or Read the Docs


Why choose Radzen Blazor Components?

:sparkles: Free

Radzen Blazor Components are open source and free for commercial use. You can install them from NuGet or build your own copy from source.

Paid support is available as part of the Radzen Professional subscription.

:computer: Native

The components are implemented in C# and take full advantage of the Blazor framework. They do not depend on or wrap existing JavaScript frameworks or libraries.

Blazor Server and Blazor WebAssembly are fully supported.

:seedling: Growing

We add new components and features on a regular basis.

Short development cycle. We release as soon as new stuff is available. No more quarterly releases.

Support exceeding your expectations

:speech_balloon: Community Support

Everybody is welcome to visit the Radzen Community forum. Join the growing community and participate in the discussions!

:dart: Dedicated Support

The Radzen team monitors the forum threads, but does not guarantee a response to every question. For guaranteed responses you may consider the dedicated support option.

Dedicated support for the Radzen Blazor Components is available as part of the Radzen Professional subscription.

Our flagship product Radzen Blazor Studio provides tons of productivity features for Blazor developers:

  • An industry-leading WYSIWYG Blazor design time canvas
  • Scaffolding a complete CRUD applications from a database
  • Built-in security - authentication and authorization
  • Visual Studio Code and Professional support
  • Deployment to IIS and Azure
  • Dedicated support with 24 hour guaranteed response time

Get started with Radzen Blazor Components

1. Install

Radzen Blazor Components are distributed as a Radzen.Blazor NuGet package. You can add them to your project in one of the following ways

  • Install the package from command line by running dotnet add package Radzen.Blazor
  • Add the project from the Visual NuGet Package Manager
  • Manually edit the .csproj file and add a project reference

2. Import the namespace

Open the _Imports.razor file of your Blazor application and add this line @using Radzen.Blazor.

3. Include a theme

Radzen Blazor components come with five free themes: Material, Standard, Default, Dark, Software and Humanistic.

To use a theme

  1. Pick a theme. The online demos allow you to preview the available options via the theme dropdown located in the header. The Material theme is currently selected by default.
  2. Include the theme CSS file in your Blazor application. Open Pages\_Layout.cshtml (Blazor Server .NET 6), Pages\_Host.cshtml (Blazor Server .NET 7) or wwwroot/index.html (Blazor WebAssembly) and include a theme CSS file by adding this snippet
    <link rel="stylesheet" href="_content/Radzen.Blazor/css/material-base.css">
    

To include a different theme (i.e. Standard) just change the name of the CSS file:

<link rel="stylesheet" href="_content/Radzen.Blazor/css/standard-base.css">

4. Include Radzen.Blazor.js

Open Pages\_Layout.cshtml (Blazor Server .NET 6), Pages\_Host.cshtml (Blazor Server .NET 7) or wwwroot/index.html (Blazor WebAssembly) and include this snippet:

<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>

5. Use a component

Use any Radzen Blazor component by typing its tag name in a Blazor page e.g.

<RadzenButton Text="Hi"></RadzenButton>

Data-binding a property

<RadzenButton Text=@text />
<RadzenTextBox @bind-Value=@text />
@code {
  string text = "Hi";
}

Handing events

<RadzenButton Click="@ButtonClicked" Text="Hi"></RadzenButton>
@code {
  void ButtonClicked()
  {

  }
}

Run demos locally

Use Radzen.Server.sln to open and run demos as Blazor server application or Radzen.WebAssembly.sln to open and run demos as Blazor WebAssembly application. Radzen.sln has reference to all projects including tests.

主要指标

概览
名称与所有者radzenhq/radzen-blazor
主编程语言C#
编程语言Dockerfile (语言数: 7)
平台Docker, Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2019-02-07 10:46:19
推送于2025-05-16 19:20:27
最后一次提交2025-05-16 22:20:20
发布数548
最新版本名称v7.0.5 (发布于 )
第一版名称v3.0.0 (发布于 )
用户参与
星数3.9k
关注者数71
派生数876
提交数4.7k
已启用问题?
问题数1404
打开的问题数92
拉请求数562
打开的拉请求数3
关闭的拉请求数178
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?