Configs2026年9月11日·1 分钟阅读

MudBlazor — Material Design Component Library for Blazor

Build modern .NET web applications with a rich set of Material Design components for Blazor Server and WebAssembly.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
MudBlazor
直接安装命令
npx -y tokrepo@latest install 6e0a619a-ade5-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

MudBlazor provides a comprehensive set of Material Design components for the Blazor framework. It lets .NET developers build interactive web UIs entirely in C# without writing JavaScript, while following Google's Material Design guidelines out of the box.

What MudBlazor Does

  • Ships 60+ ready-to-use UI components (tables, forms, dialogs, charts, navigation)
  • Supports both Blazor Server and Blazor WebAssembly hosting models
  • Provides built-in form validation with a fluent API
  • Includes a dark/light theming engine with custom palette support
  • Delivers responsive layouts with grid, breakpoints, and utility classes

Architecture Overview

MudBlazor is a Razor class library distributed as a NuGet package. Components render as standard HTML/CSS without JavaScript interop for most interactions. Where browser APIs are required (scroll, resize, clipboard), a minimal JS layer handles the bridge. The library uses CSS custom properties for theming and ships its own icon set alongside Material Icons.

Self-Hosting & Configuration

  • Install via dotnet add package MudBlazor and register services with builder.Services.AddMudServices()
  • Add the MudBlazor CSS and JS references to your host page
  • Wrap your root layout in <MudThemeProvider>, <MudPopoverProvider>, and <MudDialogProvider>
  • Customize colors, typography, and shape rounding through the MudTheme object
  • Works with .NET 6, 7, and 8 Blazor applications

Key Features

  • Material Design 2 and partial Material Design 3 support
  • Data grid with sorting, filtering, pagination, and virtualization
  • Built-in date/time pickers, color pickers, and file upload components
  • Accessibility support with ARIA attributes on interactive elements
  • Active community with frequent releases and extensive documentation

Comparison with Similar Tools

  • Radzen Blazor — also free and open-source, offers a visual designer but fewer Material-styled components
  • Ant Design Blazor — follows Ant Design language instead of Material Design
  • Syncfusion Blazor — commercial suite with more components, requires a license for most use
  • Blazorise — provider-agnostic, supports Bootstrap, Bulma, and Material via adapters

FAQ

Q: Does MudBlazor require a paid license? A: No. MudBlazor is MIT-licensed and free for commercial use.

Q: Can I use it with Blazor WebAssembly? A: Yes. It works identically on Blazor Server and WebAssembly.

Q: Does it depend on JavaScript frameworks like React or Angular? A: No. MudBlazor is pure C#/Razor with minimal JS interop only where browser APIs demand it.

Q: How large is the CSS/JS bundle? A: The combined payload is under 300 KB gzipped, suitable for production SPAs.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产