BlazorUI Demo

Getting started

Add the component library, register its services once, and include the static stylesheet.

1. Reference the library

Add the package when published, or a project reference while developing this repository.

View code
<ProjectReference Include="../BlazorUI.Components/BlazorUI.Components.csproj" />
2. Register services

Registration provides dialogs, notifications, and stable component IDs. Icons are static definitions; theme and font values are CSS variables.

View code
builder.Services.AddBlazorUIComponents();
3. Include assets and hosts

The hosts are added once in the application layout. Ordinary components do not require a host.

View code
<link rel="stylesheet" href="_content/BlazorUI.Components/blazorui.css" />

<BuiDialogHost />
<BuiNotificationHost />