Table of Contents

Namespace Dmnk.Icons.Blazor.Fluent

NuGet Version

Provide icon definitions using Dmnk.Icons.Core for the Fluent design system, or more specifically, the Blazor Fluent UI components. Since this library is based off of a Blazor component library, it only works in Blazor applications. In theory, it could be refactored using code-generation to pull icons from the official main repo for Fluent icons.

Example

using MsIcons = Microsoft.FluentUI.AspNetCore.Components.Icons.Filled.Size24;
using Icon = Dmnk.Icons.Core.Icon;

public class MyClassUsingDmnkIcons 
{
    public required Icon Icon { get; init; }
}

internal static class Program
{
    static void Main(string[] args)
    {
        var myObj = new MyClassUsingDmnkIcons 
        {
            Icon = MsIcons.Warning().ToGenericIcon()
        };
    }
}

Classes

FluentIconExtensions

Provides extension methods for converting Fluent UI icons to the generic Icon type in Dmnk.Icons.Core.