Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

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:

bash
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

bash
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:

Render mode options
OptionWhat you get
--interactivity ServerThe default. Pages are static, and a page you mark runs on the server over a circuit.
--interactivity NoneEvery page is static. The app never opens a circuit.
--interactivity WebAssemblyA page you mark runs in the browser, from a .Client project.
--interactivity AutoA page you mark runs on the server at first, and in the browser once WebAssembly has loaded.
--all-interactiveEvery 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:

Theme and layout options
OptionWhat 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 TopPuts 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.
--emptyLeaves out the sample pages and the sidebar.
--mcpConnects 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:

bash
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.

bash
izzy new starter blazor -n MyApp

To 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: --mcp connects your AI assistant to IzzyBlazor's docs. With izzy new starter blazor, it also adds the skill and the izzy server.

Connection lost

Rejoining the server…