Project templates for creating Blazor applications with NeoUI components, including sidebar, theme switcher, spotlight command palette, and dark mode toggle.
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Mar 1, 2026
$ dotnet add package NeoUI.Blazor.TemplatesProject templates for creating Blazor applications with NeoUI components, including a sidebar layout, theme switcher, spotlight command palette, and dark mode toggle.
cd templates_publish
dotnet pack
This produces bin/Release/NeoUI.Blazor.Templates.3.0.0.nupkg.
dotnet new install ./bin/Release/NeoUI.Blazor.Templates.3.0.0.nupkg
dotnet new install NeoUI.Blazor.Templates
dotnet new list neoui
dotnet new neoui -n MyApp
| Parameter | Short | Type | Default | Description |
|---|---|---|---|---|
--interactivity | -in | Server|WebAssembly|Auto | Auto | Interactive render mode |
--allInteractive | -al | bool | false | Apply rendermode at Routes level (NeoUI shell always interactive) |
--empty | -e | bool | false | Skip sample pages (Home, Counter, Weather) |
--noHttps | -no | bool | false | Disable HTTPS in launch settings |
--useProgramMain | -us | bool | false | Use explicit Program.Main entry point |
--framework | -f | net10.0 | net10.0 | Target framework |
# Server mode (single project)
dotnet new neoui -n MyApp -in Server
# WebAssembly mode (Web host + Client projects)
dotnet new neoui -n MyApp -in WebAssembly
# Auto mode (default) - Web host + Client projects, uses Server initially then WASM
dotnet new neoui -n MyApp -in Auto
# Server mode, empty (no sample pages)
dotnet new neoui -n MyApp -in Server -E
# Auto mode with explicit Program.Main
dotnet new neoui -n MyApp -us
# Server mode, no HTTPS
dotnet new neoui -n MyApp -in Server -N
# WebAssembly, empty, no HTTPS
dotnet new neoui -n MyApp -in WebAssembly -E -N
# Check all options
dotnet new neoui -h
-I Server)Single project output:
MyApp/
├── MyApp.csproj # Web SDK project with NeoUI + Tailwind build
├── Program.cs # Server-side Blazor setup
├── App.razor # Root component (InteractiveServer rendermode)
├── Routes.razor # Router
├── _Imports.razor
├── Layout/
│ ├── MainLayout.razor # NeoUI Sidebar + ThemeSwitcher + DarkModeToggle
│ └── NavMenu.razor # Sidebar navigation
├── Components/
│ ├── Common/
│ │ ├── AppLoader.razor
│ │ ├── ReconnectModal.razor # SignalR reconnect UI
│ │ └── SpotlightCommandPalette.razor # Ctrl+K command palette
│ └── Pages/
│ ├── Home.razor
│ ├── Counter.razor
│ ├── Weather.razor
│ ├── NotFound.razor
│ └── Error.razor
├── styles/ # Tailwind CSS source
├── wwwroot/ # Static assets + compiled CSS
├── package.json # npm/Tailwind build config
├── tailwind.config.js
├── appsettings.json
└── Properties/launchSettings.json
-I Auto or -I WebAssembly)Two-project solution:
MyApp.sln
MyApp/ # Web host project
├── MyApp.csproj # References MyApp.Client
├── Program.cs # Blazor hosting + WebAssembly setup
├── App.razor # Root component (InteractiveAuto/InteractiveWebAssembly)
├── _Imports.razor
├── Components/Pages/
│ └── Error.razor
├── appsettings.json
└── Properties/launchSettings.json
MyApp.Client/ # WebAssembly client project
├── MyApp.Client.csproj # BlazorWebAssembly SDK
├── Program.cs # WASM entry point with NeoUI services
├── Routes.razor
├── _Imports.razor
├── Layout/
│ ├── MainLayout.razor # NeoUI Sidebar + ThemeSwitcher + DarkModeToggle
│ └── NavMenu.razor
├── Components/
│ ├── Common/
│ │ ├── AppLoader.razor
│ │ ├── ReconnectModal.razor # (Auto mode only)
│ │ └── SpotlightCommandPalette.razor
│ └── Pages/
│ ├── Home.razor
│ ├── Counter.razor
│ ├── Weather.razor
│ └── NotFound.razor
├── styles/ # Tailwind CSS source
├── wwwroot/ # Static assets + compiled CSS
├── package.json
└── tailwind.config.js
The Tailwind CSS build runs automatically during dotnet build. Node.js and npm are required.
For Server mode:
cd MyApp
npm install # only needed once
dotnet run
For Auto / WebAssembly mode:
cd MyApp.Client
npm install # only needed once
cd ..
dotnet run --project MyApp
The
NpmInstallMSBuild target handlesnpm installautomatically ifnode_modulesis missing.
dotnet run --project MyApp
# or: dotnet run --project MyApp/MyApp.csproj
All modes include the full NeoUI shell:
<Sidebar> components<ThemeSwitcher /> from NeoUI.Blazor<DarkModeToggle /> from NeoUI.Blazor<Dialog> + <CommandContent>dotnet new uninstall NeoUI.Blazor.Templates