InfiniLore.Lucide
0.576.0
Prefix Reserved
See the version list below for details.
dotnet add package InfiniLore.Lucide --version 0.576.0
NuGet\Install-Package InfiniLore.Lucide -Version 0.576.0
<PackageReference Include="InfiniLore.Lucide" Version="0.576.0" />
<PackageVersion Include="InfiniLore.Lucide" Version="0.576.0" />
<PackageReference Include="InfiniLore.Lucide" />
paket add InfiniLore.Lucide --version 0.576.0
#r "nuget: InfiniLore.Lucide, 0.576.0"
#:package InfiniLore.Lucide@0.576.0
#addin nuget:?package=InfiniLore.Lucide&version=0.576.0
#tool nuget:?package=InfiniLore.Lucide&version=0.576.0
InfiniLore.Lucide
InfiniLore.Lucide lets you integrate Lucide Icons into Blazor apps with a simple Razor component that renders SVG markup with configurable styling.
This package is developed as an independent project and is not affiliated, associated, or endorsed by the creators or maintainers of the Lucide library. It is built to enhance the experience of using Lucide's open-source icon set within Blazor applications.
This package uses the Minor section of semantic versions (0.x.0) to denote which Lucide version is used to build the current package.
Features
- Reusable Components: Add icons via Razor components.
- Icon Customization: Configure
size,fill,stroke, and related SVG styling. - Dynamic Icons: Change the icon name on the fly using
<LucideIcon Name="..."/>. - Static Icons: Prefer static markup? Use
<Li.../>components with baked-in SVG data. - WASM Support: Use the same components and services on server and client.
Getting Started
Install the Package
Make sure you have .NET 9.0 installed. Then install InfiniLore.Lucide:
dotnet add package InfiniLore.Lucide
Usage
Register Services (for LucideIcon)
LucideIcon uses ILucideService to resolve SVG data. Register the service once at startup.
Li... components do not depend on this service.
Program.cs
builder.Services.AddLucideIcons();
_Imports.razor
@using InfiniLore.Lucide
Add the Component
LucideIcon refreshes its SVG when Name changes. Li... components are static and must be swapped to change icons at runtime.
The naming convention for Li... components is Li{LucideName.ToPascalCase()} with dashes removed.
The LucideIcon.Name parameter accepts common variations like arrow-big-down-dash, arrowbigdowndash, or ArrowBigDownDash.
class is supported on both LucideIcon and Li... components.
<LucideIcon Name="signature" />
<LucideIcon Name="arrow-right"
Size="48"
Fill="none"
Stroke="black"
StrokeWidth="2"
StrokeLineCap="round"
StrokeLineJoin="round" />
<LiSignature />
<LiDam class="some-red-class" />
Parameters (LucideIcon)
| Parameter | Type | Default | Description |
|---|---|---|---|
Name |
string | Required | Icon name (case insensitive, flexible input). |
Class |
string? | null |
CSS class for the <svg>. |
Size |
int | 24 |
Width and height of the icon. |
Fill |
string | "none" |
Fill color of the icon. |
Stroke |
string | "currentColor" |
Stroke color of the icon. |
StrokeWidth |
int | 2 |
Stroke width of the icon. |
StrokeLineCap |
string | "round" |
Line cap style (butt, round). |
StrokeLineJoin |
string | "round" |
Line join style (miter, round, bevel). |
ChildContent |
RenderFragment? | null |
Extra SVG children appended to the icon. |
Integration Details
This library:
- Uses
lucide-staticfor icon definitions during package development. - Exposes
ILucideIconDatafor SVG data encapsulation.
Dependencies
- Lucide-Static for icon SVG content.
- CodeOfChaos.GeneratorTools for generator tooling in source generation scenarios.
Supported Platforms
- .NET 9.0 Blazor Server and WebAssembly.
- .NET 10.0 Blazor Server and WebAssembly.
Development Notes
This project follows a modular structure for maintainability:
InfiniLore.Lucide: Blazor components and service logic.InfiniLore.Lucide.Data: Handles icon definitions and metadata, data provided byInfiniLore.Lucide.Generators.Raw.InfiniLore.Lucide.Generators.Raw: Implements tooling via Roslyn to read data from lucide-static package.Tools.InfiniLore.Lucide: A set of development tools, like the Razor file generator.
License
InfiniLore.Lucide is built on Lucide, which is distributed under the ICS license:
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
For full license details, see Lucide License.
Contributions
Contributions are welcome! To get started:
- Fork the repository.
- Create a new branch for your feature or fix.
- Submit a pull request with a detailed description of your changes.
For further development or issues, feel free to raise a GitHub issue or suggest improvements.
Enjoy using InfiniLore.Lucide in your Blazor projects.
| 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 is compatible. 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. |
-
net10.0
- CodeOfChaos.Extensions.DependencyInjection (>= 0.87.2)
- JetBrains.Annotations (>= 2025.2.4)
- Microsoft.AspNetCore.Components (>= 10.0.3)
- Microsoft.AspNetCore.Components.Web (>= 10.0.3)
-
net9.0
- CodeOfChaos.Extensions.DependencyInjection (>= 0.87.2)
- JetBrains.Annotations (>= 2025.2.4)
- Microsoft.AspNetCore.Components (>= 9.0.13 && < 10.0.0)
- Microsoft.AspNetCore.Components.Web (>= 9.0.13 && < 10.0.0)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on InfiniLore.Lucide:
| Package | Downloads |
|---|---|
|
InfiniLore.InfiniBlazor
InfiniLore's Component Library |
|
|
InfiniLore.InfiniBlazor.Contracts
Contract library for InfiniLore's Component Library |
|
|
InfiniLore.InfiniBlazor.Core.Components
InfiniLore's Component Library |
|
|
InfiniLore.InfiniBlazor.Core.Theming
InfiniLore's Component Library |
|
|
InfiniLore.InfiniBlazor.Core.Markdown
InfiniLore's Component Library |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.576.1 | 106 | 3/5/2026 |
| 0.576.0 | 79 | 3/5/2026 |
| 0.575.0 | 192 | 2/24/2026 |
| 0.563.0 | 260 | 1/26/2026 |
| 0.556.0 | 1,942 | 12/8/2025 |
| 0.555.0 | 771 | 12/1/2025 |
| 0.554.0 | 670 | 11/17/2025 |
| 0.553.1 | 291 | 11/14/2025 |
| 0.553.0 | 347 | 11/11/2025 |
| 0.552.0 | 376 | 11/3/2025 |
| 0.548.0 | 280 | 10/27/2025 |
| 0.546.1 | 735 | 10/22/2025 |
| 0.33.546 | 212 | 10/16/2025 |
| 0.33.545 | 189 | 10/13/2025 |
| 0.33.544 | 483 | 9/15/2025 |
| 0.33.542 | 280 | 9/8/2025 |
| 0.33.541 | 378 | 8/22/2025 |
| 0.33.540 | 210 | 8/21/2025 |
| 0.32.539 | 1,113 | 8/12/2025 |
| 0.31.536 | 223 | 8/3/2025 |