Table of Contents

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 Blazor Components