User Tools

Site Tools


fluentui_config_blazor_app

FluentUI Configuration In Blazor Application

Project File

<ItemGroup>
   <PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.10.4" />
   <PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.10.4" />
</ItemGroup>

Program.cs

using Microsoft.FluentUI.AspNetCore.Components;
builder.Services.AddRazorComponents()
   .AddInteractiveServerComponents();
 
builder.Services.AddFluentUIComponents();  // add this
 
var app = builder.Build();

_Imports.razor

@using Microsoft.FluentUI.AspNetCore.Components
fluentui_config_blazor_app.txt · Last modified: 2025/03/12 10:37 by jimc