NeoUI.Icons.Lucide 3.0.0

dotnet add package NeoUI.Icons.Lucide --version 3.0.0
                    
NuGet\Install-Package NeoUI.Icons.Lucide -Version 3.0.0
                    
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="NeoUI.Icons.Lucide" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NeoUI.Icons.Lucide" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="NeoUI.Icons.Lucide" />
                    
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 NeoUI.Icons.Lucide --version 3.0.0
                    
#r "nuget: NeoUI.Icons.Lucide, 3.0.0"
                    
#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 NeoUI.Icons.Lucide@3.0.0
                    
#: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=NeoUI.Icons.Lucide&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=NeoUI.Icons.Lucide&version=3.0.0
                    
Install as a Cake Tool

NeoUI.Icons

A comprehensive Lucide icon library for Blazor applications, providing 1,600+ beautiful, consistent SVG icons.

Features

  • 1,640+ Icons: Complete Lucide icon set
  • React-Style API: Familiar component-based API for React developers
  • Fully Accessible: ARIA-compliant with customizable labels
  • Tree-Shakeable: Blazor assembly trimming removes unused icons at publish time
  • Type-Safe: Full XML documentation and IntelliSense support
  • Themeable: Icons inherit color from parent by default, supports CSS variables
  • Lightweight: Optimized SVG rendering with minimal overhead

Installation

dotnet add package NeoUI.Icons.Lucide

Basic Usage

Import the Namespace

Add to _Imports.razor:

@using NeoUI.Icons.Lucide

Render an Icon

<LucideIcon Name="camera" />

Customize Size and Color

<LucideIcon Name="heart" Size="32" Color="red" />

Use with CSS Variables (Theming)

<LucideIcon Name="sun" Color="var(--primary)" />

Icon-Only Button (with Accessibility)

<button aria-label="Take Photo">
    <LucideIcon Name="camera" />
</button>

Integration with NeoUI Button Component

<Button>
    <Icon>
        <LucideIcon Name="camera" Size="20" />
    </Icon>
    Take Photo
</Button>

Component API

Parameters

Parameter Type Default Description
Name string (Required) Icon name (e.g., "camera", "home", "user"). Case-insensitive.
Size int 24 Icon size in pixels
Color string "currentColor" Icon color (CSS color value, inherits from parent by default)
StrokeWidth double 2.0 SVG stroke width (Lucide icons designed with 2px strokes)
Class string? null Additional CSS classes
AriaLabel string? null Accessibility label for screen readers
AdditionalAttributes Dictionary<string, object>? null Any additional SVG attributes

Examples

Basic Icon:

<LucideIcon Name="home" />

Large Icon with Custom Color:

<LucideIcon Name="star" Size="48" Color="#FFD700" />

Icon with Custom Stroke Width:

<LucideIcon Name="circle" StrokeWidth="1.5" />

Icon with Custom CSS Classes:

<LucideIcon Name="circle-alert" Class="text-destructive hover:text-destructive/80" />

Accessible Icon-Only Button:

<button>
    <LucideIcon Name="trash" AriaLabel="Delete item" />
</button>

Icon with Data Attributes:

<LucideIcon Name="settings" data-testid="settings-icon" />

Icon Names

All 1,640+ Lucide icons are available. Icon names use kebab-case and match the official Lucide icon names:

  • camera
  • home
  • user
  • settings
  • heart
  • star
  • check
  • x
  • chevron-down
  • chevron-up
  • alert-circle
  • info
  • ... and 1,600+ more

Browse all icons: lucide.dev/icons

Styling

Default Behavior

Icons inherit color from their parent element by default:

<div style="color: blue;">
    <LucideIcon Name="home" /> 
</div>

Explicit Color

Override the inherited color:

<LucideIcon Name="home" Color="red" />

CSS Variables (Theming)

Perfect for theme systems:

<LucideIcon Name="sun" Color="var(--primary)" />
<LucideIcon Name="moon" Color="var(--foreground)" />

Tailwind CSS

Use Tailwind utility classes:

<LucideIcon Name="check" Class="text-green-500 dark:text-green-400" />

Accessibility

Decorative Icons (Next to Text)

Icons next to text are decorative and don't need labels:

<button>
    <LucideIcon Name="camera" />
    <span>Take Photo</span>
</button>

Semantic Icons (Icon-Only)

Icon-only elements require AriaLabel:

<button>
    <LucideIcon Name="camera" AriaLabel="Take Photo" />
</button>

Performance

  • Bundle Size: ~300 KB for complete icon set (before compression)
  • Brotli Compression: Reduces size by ~70% in production
  • Assembly Trimming: Unused icons automatically removed at publish time
  • Static Dictionary: O(1) icon lookup with minimal memory overhead

Browser Support

Works in all modern browsers that support:

  • Blazor Server / WebAssembly / Hybrid
  • SVG rendering
  • CSS currentColor

License

This package is MIT licensed.

Lucide icons are ISC licensed by Lucide Contributors.

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.


Made with ❤️ by the NeoUI team

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NeoUI.Icons.Lucide:

Package Downloads
NeoUI.Blazor

Over 75+ pre-styled Blazor components built with shadcn/ui design and Tailwind CSS with full .NET 10 support. Beautiful defaults that you can customize to match your brand.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 128 2/28/2026
3.0.0-rc.1 58 2/25/2026