Lucide.TagHelpers 0.1.0

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

Lucide.TagHelpers for ASP.NET Core

NuGet License: MIT

A TagHelper library that makes it easy to use Lucide icons in your ASP.NET Core Razor views.

Features

  • Easy-to-use TagHelper syntax for Lucide icons
  • Type-safe icon names through source generation
  • Customizable stroke width
  • Automatic class naming based on icon names
  • SVG output with proper accessibility attributes

Installation

Install the package via NuGet:

dotnet add package Lucide.TagHelpers

Usage

  1. Add the TagHelper to your _ViewImports.cshtml:
@addTagHelper *, Lucide
  1. Use the lucide-icon tag in your Razor views:
<lucide-icon name="GitHub" />
<lucide-icon name="Heart" stroke-width="1.5" />

Configuration

The lucide-icon tag supports the following attributes:

  • name: The name of the Lucide icon to display (required)
  • stroke-width: The width of the icon's stroke (optional, defaults to 1.5)

Output

The TagHelper generates SVG markup with the following default attributes:

  • Proper SVG namespace
  • 24x24 viewBox
  • Current color for stroke
  • Round line caps and joins
  • Automatic class names (e.g., lucide github lucide-icon)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

  • Lucide - Beautiful & consistent icon toolkit
  • Humanizer - Humanizer is a .NET library that helps you work with strings, enums, dates, times, timespans, and more.
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 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. 
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.0 438 7/24/2025