LucideBlazor 1.0.4
dotnet add package LucideBlazor --version 1.0.4
NuGet\Install-Package LucideBlazor -Version 1.0.4
<PackageReference Include="LucideBlazor" Version="1.0.4" />
<PackageVersion Include="LucideBlazor" Version="1.0.4" />
<PackageReference Include="LucideBlazor" />
paket add LucideBlazor --version 1.0.4
#r "nuget: LucideBlazor, 1.0.4"
#:package LucideBlazor@1.0.4
#addin nuget:?package=LucideBlazor&version=1.0.4
#tool nuget:?package=LucideBlazor&version=1.0.4
LucideBlazor
A Blazor port of the Lucide icon library. Clean, consistent icons that just work.
Installation
dotnet add package LucideBlazor
Usage
Use strongly typed components when you know which icon you need:
<HomeIcon Size="32" Stroke="blue" />
<SearchIcon ClassName="my-icon" />
Or use dynamic lookup when you need flexibility:
<LucideIcon Name="user" Size="24" />
<LucideIcon Name="@iconName" />
Customization
All icons support these parameters:
Size- Width/height in pixels (default: 24)Stroke- Stroke color (default: "currentColor")StrokeWidth- Line thickness (default: 2)Fill- Fill color (default: "none")StrokeLineCap/StrokeLineJoin- Line stylingClassName- CSS classes- Any additional HTML attributes
<HeartIcon Size="48" Stroke="red" Fill="pink" />
<AlertCircleIcon ClassName="text-warning me-2" />
<InfoIcon id="tooltip" data-toggle="tooltip" />
How it works
A source generator reads Lucide's SVG files at compile time and generates icon components with the SVG content baked in. This means fast rendering and small bundle sizes when you publish with trimming enabled.
Contributing
This is a small and new project so contributions, bug reports, and ideas are welcome.
License
LucideBlazor is released under the MIT License. For lucides license have a look here
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LucideBlazor:
| Package | Downloads |
|---|---|
|
ShadcnBlazor
A port of shadcn to blazor |
GitHub repositories
This package is not used by any popular GitHub repositories.