Blazor.M3.Templates
1.5.0
dotnet new install Blazor.M3.Templates@1.5.0
Blazor.M3 Templates
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.
Project templates for the Blazor.M3 component library. This package allows you to quickly scaffold high-fidelity Material Design 3 applications using Blazor.
Installation
Install the templates via the .NET CLI:
dotnet new install Blazor.M3.Templates
Available Templates
Blazor.M3 Web App (Wasm) (blazorm3app)
A client-side Blazor WebAssembly app pre-configured with:
Blazor.M3library integration.- M3 Navigation Layout (Top App Bar + Navigation Drawer).
- Material Design 3 Theming foundation.
- Responsive navigation layout with dynamic indicators.
Blazor.M3 Web App (Interactive Server) (blazorm3server)
A server-side Blazor Web App (Interactive Server render mode) pre-configured with:
Blazor.M3library integration.- M3 Navigation Layout (Top App Bar + Navigation Drawer).
- Material Design 3 Theming foundation.
- Configured for .NET 10.0 MapStaticAssets and static asset optimizations.
Getting Started
To create a new project:
# Create a WebAssembly client application
dotnet new blazorm3app -n MyAwesomeClientApp
# Create an Interactive Server application
dotnet new blazorm3server -n MyAwesomeServerApp
Authentication Option (--auth)
Both templates support an optional --auth flag to scaffold a standard login screen and mock authentication flow:
# Scaffold a WebAssembly app with authentication
dotnet new blazorm3app -n MyAwesomeClientApp --auth
# Scaffold an Interactive Server app with authentication
dotnet new blazorm3server -n MyAwesomeServerApp --auth
Mock Authentication Credentials: During development, the scaffolded authentication service accepts any non-empty, valid email format and password to simulate a successful sign-in. This enables testing different page workflows without needing to set up an external identity provider first.
Features in v1.5.0
- Standard Dependency: Templates pre-configured to reference the stable
Blazor.M3version1.5.0. - Custom Theme Configuration: Includes a commented-out custom theme placeholder block in
MainLayout.razorteaching developers how to copy/paste custom palette colors exported from the online theme builder (https://blazorm3.pages.dev). - Upgraded Semantic Components: Core dashboards updated to leverage the new semantic Material Design 3 wrapper components (like
<M3SuggestionChip>). - Adaptive Layouts: Theme-aware hero graphic gradients using color tokens instead of hardcoded hex values.
For more information and documentation, visit blazorm3.pages.dev.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- Official release v1.5.0: Updated project templates to reference Blazor.M3 v1.5.0 with M3Autocomplete caching and navigation drawer isolation.