Usage

Here's a quick example how to use MudBlazor. Try it out on your own.

Quick Start

This is literally all you need in your views to use MudBlazor components.

MudBlazor is ????
<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";
    }
}
Check out all the components in our docs to find out what's available and how to use them.
An unhandled error has occurred. Reload 🗙