Lucide.NET.Blazor 0.1.2

dotnet add package Lucide.NET.Blazor --version 0.1.2
                    
NuGet\Install-Package Lucide.NET.Blazor -Version 0.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lucide.NET.Blazor" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lucide.NET.Blazor" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Lucide.NET.Blazor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lucide.NET.Blazor --version 0.1.2
                    
#r "nuget: Lucide.NET.Blazor, 0.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lucide.NET.Blazor@0.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lucide.NET.Blazor&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Lucide.NET.Blazor&version=0.1.2
                    
Install as a Cake Tool

Lucide.NET

Lucide.NET provides fast, strongly-typed Lucide icons for the C# ecosystem with first-class support for WPF, WinForms, and Blazor.

Packages

  • Lucide.NET.Core (shared icon catalog + SVG retrieval)
  • Lucide.NET.Wpf (WPF controls and markup extension)
  • Lucide.NET.WinForms (WinForms bitmap/icon helpers)
  • Lucide.NET.Blazor (Blazor component)

Install

dotnet add package Lucide.NET.Core
dotnet add package Lucide.NET.Wpf
dotnet add package Lucide.NET.WinForms
dotnet add package Lucide.NET.Blazor

WPF

<Window
    xmlns:lucide="http://lucide.net/wpf">
    <StackPanel>
        <lucide:LucideIcon Kind="Home" Size="20" StrokeThickness="2" Stroke="DodgerBlue" />
        <Image Source="{lucide:LucideImage Home, Size=18, Brush=Black}" />
    </StackPanel>
</Window>

Lucide.NET.Wpf uses the SharpVectors.Wpf package (v1.8.5) to convert SVG markup into frozen DrawingImage instances.

WinForms

using System.Drawing;
using Lucide.NET;
using Lucide.NET.WinForms;

var bitmap = LucideWinForms.ToBitmap(LucideIconKind.House, 24, Color.Black);
var icon = LucideWinForms.ToIcon(LucideIconKind.CircleAlert, 16, Color.DarkRed);

Lucide.NET.WinForms uses the Svg package (v3.4.7) to rasterize SVG markup into cached Bitmap instances.

Blazor

@using Lucide.NET
@using Lucide.NET.Blazor

<LucideIcon Kind="LucideIconKind.ShoppingCart" Size="24" Stroke="currentColor" StrokeWidth="2" />

Performance and Caching

  • Core caches decompressed SVG strings by LucideIconKind.
  • WPF caches frozen DrawingImage instances by kind, size, stroke thickness, and stroke color.
  • WinForms caches rasterized Bitmap instances by kind, size, stroke width, color, and DPI. ToBitmap returns the cached instance; clone it if you need to dispose:
using var bitmap = new Bitmap(LucideWinForms.ToBitmap(LucideIconKind.House, 24, Color.Black));

Updating Icons

  1. Download or copy Lucide SVGs:
.\eng\icons\update-lucide.ps1 -Version main
.\eng\icons\update-lucide.ps1 -SourcePath C:\path\to\lucide
  1. Run the generator:
.\eng\icons\generate.ps1 -InputPath .\eng\icons\lucide
  1. Commit generated files in src/Lucide.NET.Core/Generated and src/Lucide.NET.Core/Resources.

License MIT. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.2 127 2/12/2026