Blazor.M3
1.4.1
dotnet add package Blazor.M3 --version 1.4.1
NuGet\Install-Package Blazor.M3 -Version 1.4.1
<PackageReference Include="Blazor.M3" Version="1.4.1" />
<PackageVersion Include="Blazor.M3" Version="1.4.1" />
<PackageReference Include="Blazor.M3" />
paket add Blazor.M3 --version 1.4.1
#r "nuget: Blazor.M3, 1.4.1"
#:package Blazor.M3@1.4.1
#addin nuget:?package=Blazor.M3&version=1.4.1
#tool nuget:?package=Blazor.M3&version=1.4.1
Blazor.M3 Standard (Core)
Package Rename Notice (v1.0.2)
To improve NuGet discoverability and adhere to standard .NET naming conventions, we have renamed our packages and namespaces from BlazorM3 to Blazor.M3.
BlazorM3.Standardis nowBlazor.M3BlazorM3.Prois nowBlazor.M3.ProBlazorM3.Templatesis nowBlazor.M3.Templates
We sincerely apologize for this breaking change. Bumping the version to 1.0.2 marks this migration. Please update your package references and @using statements.
A premier Material Design 3 (M3) component library for Blazor, built with fidelity, performance, and accessibility as first-class citizens. For full documentation and live demos, visit blazorm3.pages.dev. This Standard edition provides the essential structural foundations, theming engine, and core components required to build modern, responsive web applications following Google's latest design language.
🆕 Recent Updates (v1.4.1)
- Syntax Directive Patch: Fixed
@namespacedirective syntax inM3DialogProvider,M3Banner, andM3Skeletoncomponents to prevent literal namespace string rendering. - System Stability: Updated package versions, templates, and static assets to reference the stable v1.4.1 build.
🚀 Quick Start
1. Install the Package
dotnet add package Blazor.M3
2. Project Templates (Recommended)
The easiest way to start a new project is using our pre-configured Blazor WebAssembly template:
# Install the templates
dotnet new install Blazor.M3.Templates
# Create a new project
dotnet new blazorm3app -n MyNewApp
3. Manual Registration
In your Program.cs:
using Blazor.M3.Extensions;
builder.Services.AddBlazorM3();
3. Add Static Assets
Add the following to your index.html or App.razor:
<link rel="stylesheet" href="_content/Blazor.M3/css/root.css" />
<link rel="stylesheet" href="_content/Blazor.M3/css/typography.css" />
<link rel="stylesheet" href="_content/Blazor.M3/css/elevation.css" />
<link rel="stylesheet" href="_content/Blazor.M3/css/shape.css" />
<link rel="stylesheet" href="_content/Blazor.M3/css/state.css" />
<script src="_content/Blazor.M3/js/blazor-m3.js"></script>
4. Enable Global Imports
Add the following to your _Imports.razor:
@using Blazor.M3.Components
@using Blazor.M3.Enums
✨ Features
- Design Tokens: Full implementation of MD3 color roles, typography scales, and elevation levels.
- Dynamic Theming: Support for light/dark mode and custom color seeds.
- Core Components:
- Buttons (Filled, Tonal, Outlined, Elevated, Text)
- Button Groups (Action, Single, Multi)
- Icon Buttons
- Cards (Elevated, Filled, Outlined)
- Typography system
- Navigation Drawer foundations
- Sliders (Continuous and Discrete)
- And more...
🛡️ License
Free for hobbyists and small businesses. Distributed under the MIT License. See LICENSE for more information.
Built with ❤️ by Arietta Solutions
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.8)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Blazor.M3:
| Package | Downloads |
|---|---|
|
Blazor.M3.Pro
Pro edition of the Blazor.M3 component library. Includes advanced components like M3DataTable, M3FileUploader, Range Sliders, and Side Sheets. |
GitHub repositories
This package is not used by any popular GitHub repositories.
- Patch release v1.4.1: Fixed @namespace directive syntax in M3DialogProvider, M3Banner, and M3Skeleton components.