MudShell 0.2.6

dotnet add package MudShell --version 0.2.6
                    
NuGet\Install-Package MudShell -Version 0.2.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MudShell" Version="0.2.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MudShell" Version="0.2.6" />
                    
Directory.Packages.props
<PackageReference Include="MudShell" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MudShell --version 0.2.6
                    
#r "nuget: MudShell, 0.2.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MudShell@0.2.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MudShell&version=0.2.6
                    
Install as a Cake Addin
#tool nuget:?package=MudShell&version=0.2.6
                    
Install as a Cake Tool

MudShell

A Razor Class Library of opinionated Blazor components built on top of MudBlazor 9, designed for dark-mode AI-shell style applications.

Features

  • 🎨 Pre-configured dark/light MudTheme — just call CreateDarkTheme()
  • 🗂 MdsAppShell — full-page shell with collapsible sidebar, background image/palette modes
  • 🌲 Unified hierarchical navigation with MbxNavTree (MdsSidebarNav, MdsContextNavPanel, MbxMobileDrilldownNav)
  • 🖥️ Desktop-first shell with collapsible sidebar navigation
  • 💬 MdsChatBar — glassmorphism input bar
  • 🃏 MdsDocumentCard, MdsFilterTabBar, MdsPageHeader
  • 🧩 Main-content primitives (MdsMainToolbar, MdsMainSection, MdsMainPart, MdsMainEmptyState)
  • All components use scoped CSS — zero global style pollution

Quick start

1. Add the project reference


<ItemGroup>
  <ProjectReference Include="..\MudShell\MudShell.csproj" />
</ItemGroup>

2. Register services

// Program.cs
builder.Services.AddMudShell();

3. Add global imports

@* _Imports.razor *@
@using MudShell
@using MudShell.Components.AppShell
@using MudShell.Components.Sidebar
@using MudShell.Components.BottomNav
@using MudShell.Components.ChatBar
@using MudShell.Components.DocumentCard
@using MudShell.Components.FilterTabBar
@using MudShell.Components.MainContent
@using MudShell.Components.PageHeader

4. Add MudBlazor providers to your root component

MdsAppShell is a pure layout shell — it does not register MudBlazor providers internally. You must declare them once in your app's root component (e.g. Routes.razor) to avoid a duplicate section-ID crash at runtime:

@* Routes.razor *@
<MudThemeProvider Theme="@myTheme" />
<MudPopoverProvider />
<MudSnackbarProvider />
<MudDialogProvider />

<Router AppAssembly="typeof(App).Assembly">
    ...
</Router>

5. Use MdsAppShell in your layout

@* MainLayout.razor *@
@inherits LayoutComponentBase

<MdsAppShell BackgroundMode="MdsAppShell.MbxBackgroundMode.Palette">
  <SidebarContent>
    
  </SidebarContent>
  <ContextPanelContent>
    
  </ContextPanelContent>
  <ChildContent>
    @Body
  </ChildContent>
</MdsAppShell>

Hierarchical single-source navigation

<MdsAppShell @ref="_shell"
  ContextPanelExpanded="@_contextExpanded"
  ContextPanelExpandedChanged="@(v => _contextExpanded = v)"
  ContextPanelWidth="320"
  ContextPanelCollapsedWidth="72">
  <SidebarContent>
    <MdsSidebarNav Tree="@AppNav.Tree" />
  </SidebarContent>
  <ContextPanelContent>
    <MdsContextNavPanel Tree="@AppNav.Tree" IsExpanded="@_contextExpanded" />
  </ContextPanelContent>
  <ChildContent>@Body</ChildContent>
</MdsAppShell>

You can collapse/expand the level-2 panel at runtime with:

_shell.ToggleContextPanel();

For pages with actions and filters, use this structure:

  1. Top action bar with MdsMainToolbar (primary actions on the left, UI config on the right with MudSpacer).
  2. Filter row below with a horizontal MudStack of MudChip filters.
  3. Keep the filter row directly on the page background (no bordered MudPaper wrapper).

This pattern is used in the sample pages (for example MeteoPage and EuropeCitiesDashboard) for consistent UX.

For a full page blueprint and MudBlazor migration guidance, see the dedicated docs below.

Documentation

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.6 0 8/9/2026
0.2.5 251 8/1/2026
0.2.4 98 8/1/2026
0.2.3 99 8/1/2026
0.2.2 92 8/1/2026
0.2.1 91 7/27/2026
0.1.0 118 6/12/2026
0.0.5 111 6/11/2026
0.0.4 103 6/11/2026
0.0.2 110 5/17/2026