/mudblazor:mudblazorfrom mudblazor
Build, configure, and debug MudBlazor UI in this Blazor Web App. Use when adding or editing MudBlazor components (MudDataGrid, MudTable, MudForm, MudDialog, MudAutocomplete, MudSelect, layout with MudLayout/MudAppBar/MudDrawer), wiring MudBlazor services and providers, theming and dark mode, fixing MudBlazor render-mode, popover, or prerendering issues, or authoring this project's own components that wrap or compose MudBlazor primitives. Not for generic Blazor component architecture, lifecycle, or state coordination — use the dotnet-blazor:* skills for those.
Ships in mudblazor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
MudBlazor is the only UI toolkit here. There is no upstream Claude skill for it,
so this file is the project's source of truth. It complements — does not replace —
the dotnet-blazor:* skills, which still own component architecture, lifecycle,
prerendering, JS interop, and state coordination.
grep -i mudblazor **/*.csproj (or read the
.csproj). MudBlazor's API differs substantially across v6 → v7 → v8; several
names below changed in v8. Do not trust memory for signatures.https://mudblazor.com/api/<component>
and https://mudblazor.com/components/<component>. When a build error mentions a
missing member or changed parameter, check the docs before guessing..csproj (Version="8.x.y", no *). If
you upgrade it, do it deliberately and skim the MudBlazor migration notes.| Location | Requirement |
|---|---|
.csproj | PackageReference Include="MudBlazor" Version="8.x.y" (exact) |
Program.cs | builder.Services.AddMudServices(); |
_Imports.razor | @using MudBlazor |
Root component <head> | Roboto font link + _content/MudBlazor/MudBlazor.min.css; no Bootstrap link |
Before </body> | <script src="_content/MudBlazor/MudBlazor.min.js"></script> after blazor.web.js |
MainLayout.razor | <MudThemeProvider>, <MudPopoverProvider>, <MudDialogProvider>, <MudSnackbarProvider> |
If popovers/menus/MudSelect/tooltips render in the wrong place or not at all,
MudPopoverProvider is missing or the layout is running in static SSR.
Copy-paste snippets for every item above, plus forms, dialogs, data grids,
snackbars, and dark mode, are in references/patterns.md — read it before
writing new MudBlazor code.
MainLayout inherit the layout's render mode. If the app
uses per-page interactivity, the layout itself must be interactive or the
providers do nothing.OnInitializedAsync; for MudBlazor data loads follow
dotnet-blazor:support-prerendering (persist state or gate the load).| Need | Use | Notes |
|---|---|---|
| Model-bound form + validation | EditForm + DataAnnotationsValidator + Mud inputs | Simplest; validation attributes on the model. For="@(() => model.X)" on each input. |
| Dynamic / standalone validation | MudForm + @ref + form.Validate() | Per-field Validation func or list; no EditContext. Don't nest in EditForm. |
| Tabular data, client-side | MudDataGrid<T> with <PropertyColumn> / <TemplateColumn> | Preferred over MudTable for new code. |
| Tabular data, server paging/sort/filter | MudDataGrid<T> ServerData="LoadAsync" → GridData<T> | Do filtering/sorting in the query, not in memory. |
| Modal | IDialogService.ShowAsync<TDialog>(title, parameters, options) | Never build a custom overlay. Dialog reads [CascadingParameter] IMudDialogInstance MudDialog (v8 name). |
| Toast / notification | ISnackbar.Add("msg", Severity.Success) | Configure defaults in AddMudServices. |
| App shell | MudLayout > MudAppBar + MudDrawer + MudMainContent | Drawer open state is a bound bool in the layout. |
| Icon | Icons.Material.Filled.X (also .Outlined, .Rounded) | @using MudBlazor covers it. |
Class= — pa-4, ma-2,
d-flex, flex-grow-1, gap-2, mud-width-full. These mirror the spacing
scale, not Bootstrap..razor.css (CSS isolation), not a
global stylesheet.container,
row, col-*, or btn btn-primary class, it's leftover template markup —
replace it with the MudBlazor equivalent.MudDialogInstance → IMudDialogInstance as the cascading parameter type.DialogService.Show(...) → prefer ShowAsync(...); it returns
Task<IDialogReference>.MudSelect<T>, MudAutocomplete<T> require the T type parameter explicitly
when it can't be inferred.@bind-Value (not @bind-Text, except MudTextField where
Text is the raw string and Value is the converted value).<MudThemeProvider @ref="_provider" @bind-IsDarkMode="_isDark" />;
read the OS preference with await _provider.GetSystemPreference() in
OnAfterRenderAsync(firstRender).MudBlazor. Many support types — event args
(FormFieldChangedEventArgs), CssBuilder, converters, ParameterState
helpers — live in MudBlazor.Utilities. A CS0246 on a MudBlazor type
usually means that @using / using MudBlazor.Utilities; is missing, not that
the type is gone.When testing your own components that use MudBlazor:
MudPopoverProvider (and MudDialogProvider for dialogs) in the
test render tree, or menu/select/tooltip/autocomplete content never renders.Find() / FindAll() results — re-query after every interaction.InvokeAsync(...).ClickAsync, ChangeAsync, InputAsync, BlurAsync.Context.AddFakeTimeProvider())
before rendering; advance it explicitly. No Task.Delay, Thread.Sleep, or
polling waits — use WaitForAssertion / WaitForState only to observe renders.aria-*, state), not whole-markup
equality.https://www.w3.org/WAI/ARIA/apg/patterns/) — its role / name / state /
keyboard tables are the checklist.aria-expanded must flip, aria-activedescendant must track
the visual highlight, aria-selected must follow selection. A highlight that is
only a CSS class is invisible to assistive tech.aria-label, or
aria-labelledby).When building components this app owns that wrap or compose MudBlazor
(e.g. <MoneyField>, a themed <AppDataGrid>), read
references/authoring-components.md and use dotnet-blazor:author-component
for the generic Blazor mechanics. Core rules:
ComponentBase; inherit MudComponentBase only for Mud-style
primitives that want Class/Style/@attributes passthrough for free.Class/Style/@attributes; build
class strings with CssBuilder; theme tokens, never hard-coded colors;
positive boolean names; CSS in a collocated .razor.css.aria-* as overridable
fallbacks; [CascadingParameter] bool RightToLeft when layout is directional.dotnet build clean (MudBlazor analyzer warnings addressed, not suppressed).The bUnit, accessibility, styling, namespace, and component-authoring guidance in
this skill is the app-development subset of MudBlazor's own contributor guide
(github.com/MudBlazor/MudBlazor → AGENTS.md on dev, distilled 2026-08-29).
Everything about that guide's build system — SkipBunCompile, docs-project
builds, analyzer tests, viewer components, restore rules, the dotnet format
charset pass — is for contributors to the library itself and is intentionally
excluded. There is no live link; re-read AGENTS.md upstream to refresh.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub carlnaddy/claude-plugins-dotnet --plugin mudblazor