KEMBAR78
GitHub - MudBlazor/MudBlazor: Blazor Component Library based on Material Design principles with an emphasis on ease of use and extensibility
Skip to content

Blazor Component Library based on Material Design principles with an emphasis on ease of use and extensibility

License

Notifications You must be signed in to change notification settings

MudBlazor/MudBlazor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

MudBlazor Logo

Material Design components for Blazor

GitHub Workflow Status Quality Gate Status Codecov GitHub GitHub Repo stars Contributors Discussions Discord Twitter NuGet version NuGet downloads

Build stunning, interactive web applications with MudBlazor β€” the free, open-source Material Design library for Blazor.

🌐 Documentation ⚑ Interactive Playground

πŸ’Ž Why Choose MudBlazor?

🎨 Beautiful, responsive Material Design components
πŸ’» Fully written in C# with minimal JavaScript
πŸ“– Comprehensive documentation and examples
βœ… Extensive test coverage

πŸ“Š Repo Stats

Repobeats analytics image

πŸš€ Getting Started

We have ready-to-go templates at the Templates repository, or follow the quick install guide below:

Installation

Install Package:

dotnet add package MudBlazor

_Imports.razor:

@using MudBlazor

MainLayout.razor or App.razor:

<MudThemeProvider/>
<MudPopoverProvider/>
<MudDialogProvider/>
<MudSnackbarProvider/>

HTML head section (index.html/_Layout.cshtml/_Host.cshtml/App.razor):

<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" />

The default Blazor script at the end of the body:

<script src="_content/MudBlazor/MudBlazor.min.js"></script>

Program.cs:

using MudBlazor.Services;
builder.Services.AddMudServices();

Example Usage

<MudText Typo="Typo.h6">
    MudBlazor is @Text
</MudText>

<MudButton Variant="Variant.Filled" 
           Color="Color.Primary" 
           OnClick="ButtonOnClick">
    @ButtonText
</MudButton>

@code {
    string Text { get; set; } = "????";
    string ButtonText { get; set; } = "Click Me";
    int ClickCount { get; set; }

    void ButtonOnClick()
    {
        ClickCount += 1;
        Text = $"Awesome x {ClickCount}";
        ButtonText = "Click Me Again";
    }
}

For more details, see the complete installation guide on our website.

🀝 Contributing

Contributions from the community are what makes MudBlazor successful.
Whether it's fixing bugs, adding features, or improving documentation, everything counts.

πŸ’¬ Feel free to chat with us on Discord to get feedback before diving in.
πŸ“š Check out our contribution guidelines to get started and learn more about how the project works.
βœ… If a PR fixes something you reported, locally test a preview version to ensure your app works as expected.

βš™οΈ Version Support

MudBlazor .NET Support
5.x.x .NET 5 Ended (Jan 2022)
6.x.x .NET 6, .NET 7, .NET 8 Ended (Jan 2025)
7.x.x .NET 7, .NET 8 Limited Support
8.x.x .NET 8, .NET 9 βœ”οΈ Full Support

Tip

Upgrading? Check our Migration Guide for help with breaking changes.

Warning

  1. Static rendering is not supported - Learn more.
  2. Use an up-to-date browser - Blazor supported platforms.