Create an app
IzzyBlazor's starter is Microsoft's Blazor Web App, rebuilt with IzzyBlazor. Its layout, pages and account pages
use IzzyBlazor's components and theme, in every render mode. It accepts the same options as
dotnet new blazor.
For an app you already have, see Add to an existing app.
Install the templates
The starter is a dotnet new template, like Microsoft's own blazor template. Microsoft's
templates come with the .NET SDK. IzzyBlazor's come in a NuGet package, so you install them once. With the
.NET 10 SDK, run:
dotnet new install [email protected]
The command includes a version because IzzyBlazor is in preview. Without one, dotnet new install
looks for a stable release.
Create the app
dotnet new starter-blazor -n MyApp
cd MyApp
dotnet run
Open the URL that dotnet run prints. The app has a sidebar, a home page, and sample Counter, Weather
and Contact pages. Its pages are static by default. A page runs
on the server over a circuit once you give it a render mode, and Counter already has one.
Choose the render modes
The render mode options are Microsoft's, with the same names and defaults:
| Option | What you get |
|---|---|
--interactivity Server | The default. Pages are static, and a page you mark runs on the server over a circuit. |
--interactivity None | Every page is static. The app never opens a circuit. |
--interactivity WebAssembly | A page you mark runs in the browser, from a .Client project. |
--interactivity Auto | A page you mark runs on the server at first, and in the browser once WebAssembly has loaded. |
--all-interactive | Every page is interactive in the chosen render mode, except pages marked to stay static, such as the account pages. |
With WebAssembly or Auto, the app is two projects: MyApp on the server and MyApp.Client
for the components that run in the browser. See
Pages in the browser.
Whichever you choose, a page you don't mark stays static, so the choice is what a page can become, not what every page is. What each render mode adds counts what a page needs in each.
Accounts
--auth Individual adds login, registration and account management with ASP.NET Core Identity.
Accounts are stored in a SQLite database. To use SQL Server LocalDB instead, add --use-local-db.
The account pages keep Microsoft's code and use IzzyBlazor's components, so Microsoft's fixes still apply to them.
Theme and layout
IzzyBlazor's own options set the theme and the shell around every page:
| Option | What it does |
|---|---|
--preset <name> | Sets the theme: Standard, Compact for data and admin apps, Soft for consumer apps, or Editorial for reading and docs. |
--brand <color> | Sets the brand color: blue, ink, indigo, violet, teal, green or rose, or a hex color such as #0a7d5a. |
--nav Top | Puts the navigation in the top bar instead of a sidebar. On phones, it folds into a menu. |
--shell <look> | Sets how the page stands apart from the shell: Tinted (the default), Inset (a raised panel), Flat (lines only) or Canvas (a tinted page for cards). |
--content-width <rem> | Sets how wide pages get: Full, or 64, 72 or 80 rem. Auto, the default, fills the space beside a sidebar, and centers a 72 rem page under a top bar. |
--empty | Leaves out the sample pages and the sidebar. |
--mcp | Connects Claude Code, VS Code, Visual Studio and Cursor to IzzyBlazor's docs server. |
To create a dense admin app with links across the top, run:
dotnet new starter-blazor -n Admin --preset Compact --brand teal --nav Top
To see the other options, such as --no-https and --use-program-main, run
dotnet new starter-blazor --help. To change the theme later, set it on IzzyTheme. See
Themes and presets.
With the izzy CLI
izzy new creates the same app and accepts the same options. To add
blocks to the app afterwards, install the CLI. See
The izzy CLI.
izzy new starter blazor -n MyAppTo start from a working app instead, such as a CRM, see Templates.
Next steps
- The izzy CLI: add a hero, pricing or a sign-up form to the app as code you own.
- Components: every component, with what it does in each render mode.
- AI assistants:
--mcpconnects your AI assistant to IzzyBlazor's docs. Withizzy new starter blazor, it also adds the skill and the izzy server.