MudBlazor 7.9.0
Prefix ReservedSee the version list below for details.
dotnet add package MudBlazor --version 7.9.0
NuGet\Install-Package MudBlazor -Version 7.9.0
<PackageReference Include="MudBlazor" Version="7.9.0" />
paket add MudBlazor --version 7.9.0
#r "nuget: MudBlazor, 7.9.0"
// Install MudBlazor as a Cake Addin #addin nuget:?package=MudBlazor&version=7.9.0 // Install MudBlazor as a Cake Tool #tool nuget:?package=MudBlazor&version=7.9.0
<h1> <picture> <source media="(prefers-color-scheme: dark)" srcset="content/MudBlazor-GitHub-NoBg-Dark.png"> <source media="(prefers-color-scheme: light)" srcset="content/MudBlazor-GitHub-NoBg.png"> <img alt="MudBlazor" src="content/MudBlazor-GitHub-NoBg.png"> </picture> </h1>
Material Design components for Blazor
MudBlazor is an ambitious Material Design component framework for Blazor with an emphasis on ease of use and clear structure. It is perfect for .NET developers who want to rapidly build web applications without having to struggle with CSS and Javascript. MudBlazor, being written entirely in C#, empowers you to adapt, fix or extend the framework. There are plenty of examples in the documentation, which makes understanding and learning MudBlazor very easy.
Documentation & Demo
Why is MudBlazor so successful?
- Clean and aesthetic graphic design based on Material Design.
- Clear and easy to understand structure.
- Good documentation with many examples and source snippets.
- All components are written entirely in C#, no JavaScript allowed (except where absolutely necessary).
- Users can make beautiful apps without needing CSS (but they can of course use CSS too).
- No dependencies on other component libraries, 100% control over components and features.
- Stability! We strive for a complete test coverage.
- Releases often so developers can get their PRs and fixes in a timely fashion.
Prerequisites
MudBlazor | .NET | Support |
---|---|---|
1.x.x - 2.0.x | .NET 3.1 | Ended 03/2021 |
5.x.x | .NET 5 | Ended 01/2022 |
6.x.x | .NET 6, .NET 7, .NET 8 | ✔️ |
7.x.x | .NET 7, .NET 8 | ✔️ |
ℹ️ Currently only interactive rendering modes are supported - Learn more.
⚠️ Blazor only supports current browser versions. To ensure a seamless experience with MudBlazor, please use an up-to-date web browser. If a browser version is no longer maintained by its publisher, we cannot guarantee compatibility with MudBlazor.
Stats
Contributing
👋 Thanks for wanting to contribute!
Contributions from the community are what makes MudBlazor successful.
If you are familiar with technologies like C#, Blazor, JavaScript, or CSS, and wish to give something back, please consider submitting a pull request! We try to merge all non-breaking bugfixes and will deliberate the value of new features for the community. Please note there is no guarantee your PR will be merged, so if you want to be sure before investing the work, feel free to contact the team first.
Check out the contribution guidelines to understand our goals and learn more about the internals of the project.
Getting Started
Full installation instructions can be found on our website.
Alternatively use one of our templates from the MudBlazor.Templates repo.
Quick Installation Guide
Install Package
dotnet add package MudBlazor
Add the following to _Imports.razor
@using MudBlazor
Add the following to the MainLayout.razor
or App.razor
<MudThemeProvider/>
<MudPopoverProvider/>
<MudDialogProvider/>
<MudSnackbarProvider/>
Add the following to your HTML head
section, it's either index.html
or _Layout.cshtml
/_Host.cshtml
/App.razor
depending on whether you're running WebAssembly or Server
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
Next, add the following to the default Blazor script at the end of the body
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
Add the following to the relevant sections of Program.cs
using MudBlazor.Services;
builder.Services.AddMudServices();
Usage
<MudText Typo="Typo.h6">MudBlazor is @Text</MudText>
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="ButtonOnClick">@ButtonText</MudButton>
@code {
public string Text { get; set; } = "????";
public string ButtonText { get; set; } = "Click Me";
public int ButtonClicked { get; set; }
void ButtonOnClick()
{
ButtonClicked += 1;
Text = $"Awesome x {ButtonClicked}";
ButtonText = "Click Me Again";
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- Microsoft.AspNetCore.Components (>= 7.0.20)
- Microsoft.AspNetCore.Components.Web (>= 7.0.20)
- Microsoft.Extensions.Localization (>= 7.0.20)
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.8)
- Microsoft.AspNetCore.Components.Web (>= 8.0.8)
- Microsoft.Extensions.Localization (>= 8.0.8)
NuGet packages (182)
Showing the top 5 NuGet packages that depend on MudBlazor:
Package | Downloads |
---|---|
MudBlazor.ThemeManager
ThemeManager component for MudBlazor to design, test or do live changes to Mudblazor themes. |
|
FenixAlliance.ACL.Dependencies
Application Component for the Alliance Business Suite. |
|
MudBlazor.Markdown
Markdown component for MudBlazor (https://mudblazor.com/) |
|
CodeBeam.MudBlazor.Extensions
MudBlazor extension components from contributors. Includes 30+ components and utilities. |
|
Blauhaus.EVACS.Admin.Blazor
Package Description |
GitHub repositories (54)
Showing the top 5 popular GitHub repositories that depend on MudBlazor:
Repository | Stars |
---|---|
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
|
|
fullstackhero/blazor-starter-kit
Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
|
|
dotnet/samples
Sample code referenced by the .NET documentation
|
|
Nethereum/Nethereum
Ethereum .Net cross platform integration library
|
|
enkodellc/blazorboilerplate
Blazor Boilerplate / Starter Template with MudBlazor
|
Version | Downloads | Last updated |
---|---|---|
8.0.0-preview.5 | 1,130 | 11/22/2024 |
8.0.0-preview.4 | 4,455 | 10/30/2024 |
8.0.0-preview.3 | 422 | 10/28/2024 |
8.0.0-preview.2 | 656 | 10/22/2024 |
8.0.0-preview.1 | 1,641 | 10/13/2024 |
7.15.0 | 112,605 | 10/29/2024 |
7.14.0 | 44,792 | 10/22/2024 |
7.13.0 | 39,514 | 10/17/2024 |
7.12.1 | 19,689 | 10/14/2024 |
7.12.0 | 3,139 | 10/14/2024 |
7.11.0 | 10,537 | 10/12/2024 |
7.10.0 | 5,902 | 10/11/2024 |
7.9.0 | 13,915 | 10/10/2024 |
7.8.0 | 214,047 | 9/6/2024 |
7.7.0 | 35,221 | 9/2/2024 |
7.6.0 | 208,426 | 8/6/2024 |
7.5.0 | 43,348 | 7/31/2024 |
7.4.0 | 47,780 | 7/23/2024 |
7.3.0 | 51,267 | 7/17/2024 |
7.2.0 | 21,018 | 7/15/2024 |
7.1.1 | 20,453 | 7/11/2024 |
7.1.0 | 6,943 | 7/10/2024 |
7.0.0 | 62,394 | 6/29/2024 |
7.0.0-rc.2 | 2,865 | 6/21/2024 |
7.0.0-rc.1 | 18,431 | 6/10/2024 |
7.0.0-preview.4 | 3,739 | 5/27/2024 |
7.0.0-preview.3 | 3,512 | 5/14/2024 |
7.0.0-preview.2 | 742 | 5/9/2024 |
7.0.0-preview.1 | 2,047 | 5/1/2024 |
6.21.0 | 154,048 | 7/6/2024 |
6.20.0 | 386,178 | 6/3/2024 |
6.19.1 | 724,147 | 3/22/2024 |
6.19.0 | 4,670 | 3/22/2024 |
6.18.0 | 43,159 | 3/20/2024 |
6.17.0 | 186,516 | 3/4/2024 |
6.16.0 | 171,242 | 2/19/2024 |
6.15.0 | 277,002 | 1/30/2024 |
6.14.0 | 98,516 | 1/22/2024 |
6.12.0 | 294,006 | 1/2/2024 |
6.11.2 | 182,709 | 12/18/2023 |
6.11.1 | 316,164 | 11/21/2023 |
6.11.0 | 453,354 | 10/8/2023 |
6.10.0 | 196,710 | 9/14/2023 |
6.9.0 | 213,912 | 8/18/2023 |
6.8.0 | 163,700 | 8/2/2023 |
6.7.0 | 233,571 | 7/10/2023 |
6.6.0 | 83,576 | 6/29/2023 |
6.5.0 | 47,984 | 6/24/2023 |
6.4.1 | 133,255 | 6/8/2023 |
6.4.0 | 8,224 | 6/7/2023 |
6.3.1 | 85,921 | 5/27/2023 |
6.3.0 | 56,892 | 5/24/2023 |
6.2.5 | 61,997 | 5/17/2023 |
6.2.3 | 127,783 | 5/3/2023 |
6.2.2 | 203,457 | 4/13/2023 |
6.2.1 | 37,811 | 4/12/2023 |
6.2.1-dev3 | 2,258 | 4/4/2023 |
6.2.1-dev2 | 1,755 | 3/30/2023 |
6.2.0 | 300,624 | 3/15/2023 |
6.1.10-dev1 | 3,815 | 3/2/2023 |
6.1.9 | 400,011 | 2/15/2023 |
6.1.8 | 183,572 | 1/27/2023 |
6.1.7 | 248,572 | 1/2/2023 |
6.1.6 | 77,009 | 12/18/2022 |
6.1.5 | 69,407 | 12/11/2022 |
6.1.4 | 72,385 | 12/5/2022 |
6.1.3-dev.1 | 2,504 | 11/22/2022 |
6.1.2 | 194,964 | 11/14/2022 |
6.1.0 | 69,203 | 11/13/2022 |
6.0.19-dev3 | 1,647 | 11/11/2022 |
6.0.19-dev1 | 2,458 | 11/10/2022 |
6.0.18 | 50,806 | 11/9/2022 |
6.0.17 | 202,993 | 10/10/2022 |
6.0.17-dev.1 | 3,958 | 9/22/2022 |
6.0.16 | 158,605 | 9/21/2022 |
6.0.15 | 259,493 | 8/31/2022 |
6.0.14 | 312,140 | 7/28/2022 |
6.0.13 | 97,892 | 7/26/2022 |
6.0.12 | 119,008 | 7/18/2022 |
6.0.11 | 251,231 | 7/1/2022 |
6.0.11-dev.4 | 7,449 | 5/30/2022 |
6.0.11-dev.3 | 1,293 | 5/24/2022 |
6.0.11-dev.2 | 487 | 5/21/2022 |
6.0.11-dev.1 | 791 | 5/20/2022 |
6.0.10 | 772,534 | 5/3/2022 |
6.0.10-dev.5 | 896 | 4/24/2022 |
6.0.10-dev.4 | 643 | 4/21/2022 |
6.0.10-dev.3 | 1,966 | 4/19/2022 |
6.0.10-dev.2 | 1,873 | 4/6/2022 |
6.0.10-dev.1 | 333 | 4/5/2022 |
6.0.9 | 231,329 | 3/29/2022 |
6.0.8 | 13,842 | 3/27/2022 |
6.0.7 | 245,732 | 2/25/2022 |
6.0.6 | 423,269 | 2/3/2022 |
6.0.5 | 83,010 | 1/17/2022 |
6.0.4 | 34,706 | 1/3/2022 |
6.0.3 | 3,843 | 12/31/2021 |
6.0.2 | 237,841 | 11/9/2021 |
5.2.5 | 23,351 | 9/29/2022 |
5.2.4 | 59,644 | 1/7/2022 |
5.2.0 | 86,236 | 10/31/2021 |
5.1.5 | 81,424 | 9/27/2021 |
5.1.4 | 58,506 | 9/13/2021 |
5.1.3 | 27,250 | 9/6/2021 |
5.1.2 | 21,264 | 8/24/2021 |
5.1.1 | 10,903 | 8/20/2021 |
5.1.0 | 72,841 | 7/27/2021 |
5.0.15 | 52,261 | 6/28/2021 |
5.0.14 | 41,081 | 6/21/2021 |
5.0.13 | 14,080 | 6/15/2021 |
5.0.11 | 15,715 | 6/7/2021 |
5.0.10 | 20,471 | 5/24/2021 |
5.0.9 | 20,469 | 5/17/2021 |
5.0.8 | 19,616 | 4/25/2021 |
5.0.7 | 29,768 | 3/29/2021 |
5.0.6 | 13,223 | 3/16/2021 |
5.0.5 | 14,048 | 3/8/2021 |
5.0.3 | 9,752 | 3/1/2021 |
5.0.2 | 6,752 | 2/21/2021 |
5.0.1 | 10,059 | 2/10/2021 |
5.0.0 | 7,470 | 2/6/2021 |
2.0.7 | 46,370 | 3/29/2021 |
2.0.6 | 4,015 | 3/16/2021 |
2.0.5 | 2,682 | 3/8/2021 |
2.0.4 | 2,115 | 3/8/2021 |
2.0.3 | 2,111 | 3/1/2021 |
2.0.2 | 2,274 | 2/21/2021 |
2.0.0 | 7,621 | 2/5/2021 |
1.2.4 | 13,853 | 12/30/2020 |
1.2.1 | 3,961 | 12/17/2020 |
1.2.0 | 3,164 | 12/7/2020 |
1.1.5 | 4,227 | 11/29/2020 |
1.1.4 | 2,495 | 11/23/2020 |
1.1.3 | 8,966 | 11/16/2020 |
1.1.2 | 2,062 | 11/11/2020 |
1.1.1 | 2,129 | 11/5/2020 |
1.1.0 | 1,947 | 11/2/2020 |
1.0.9 | 2,103 | 10/26/2020 |
1.0.8 | 1,955 | 10/23/2020 |
1.0.7 | 1,849 | 10/18/2020 |
1.0.6 | 1,822 | 10/11/2020 |
1.0.5 | 1,927 | 10/8/2020 |
1.0.4 | 1,890 | 10/2/2020 |
1.0.3 | 2,016 | 9/20/2020 |
1.0.2 | 1,975 | 9/20/2020 |
1.0.1 | 1,863 | 9/11/2020 |
1.0.0 | 9,375 | 9/11/2020 |