Heroicons.AspNetCore.Mvc.TagHelpers 3.1.2

dotnet add package Heroicons.AspNetCore.Mvc.TagHelpers --version 3.1.2                
NuGet\Install-Package Heroicons.AspNetCore.Mvc.TagHelpers -Version 3.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="Heroicons.AspNetCore.Mvc.TagHelpers" Version="3.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Heroicons.AspNetCore.Mvc.TagHelpers --version 3.1.2                
#r "nuget: Heroicons.AspNetCore.Mvc.TagHelpers, 3.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.
// Install Heroicons.AspNetCore.Mvc.TagHelpers as a Cake Addin
#addin nuget:?package=Heroicons.AspNetCore.Mvc.TagHelpers&version=3.1.2

// Install Heroicons.AspNetCore.Mvc.TagHelpers as a Cake Tool
#tool nuget:?package=Heroicons.AspNetCore.Mvc.TagHelpers&version=3.1.2                

Heroicons.AspNetCore logo Heroicons.AspNetCore

Heroicons that are easy to use in ASP.NET Core MVC as TagHelpers.

Build status Tests codecov NuGet version NuGet downloads

The library is written in C# and released with an MIT license, so feel free to fork or use commercially.

Any feedback is appreciated, please visit the issues page or send me an e-mail.

Download

Binaries of the last build can be downloaded on the AppVeyor CI page of the project.

The library is also published on NuGet.org, install using:

dotnet add package Heroicons.AspNetCore.Mvc.TagHelpers

<sup>The package is built for .NET 6 or newer and ASP.NET Core MVC.</sup>

Usage

  • Add package to your ASP.NET Core MVC project.
  • Find _ViewImports.cshtml file and add the following line:
@addTagHelper *, Heroicons.AspNetCore.Mvc.TagHelpers
  • In your *.cshtml views, you can then use the icon as tag helper:
<heroicon kind="Solid" name="Envelope" />
  • The kind corresponds to style kind enum, currently, either Solid (24x24) Outline (24x24), Mini (20x20), or Micro (16x16).
  • The name corresponds to individual icons, currently there are over 200 of them. See https://heroicons.com/ for the complete overview.
  • Note that you can easily apply additional attributes (e.g. CSS classes), which makes it great for use with Tailwind CSS:
<heroicon class="ml-2 -mr-0.5 h-4 w-4" kind="Solid" name="Envelope" />
  • You can also try the sample project in the tests/ folder to see it running.
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

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
3.1.2 3,521 7/11/2024
3.1.1 509 6/18/2024
3.1.0 1,703 3/25/2024
3.0.0 2,707 12/29/2023
2.1.0 1,112 12/12/2023
2.0.8 5,754 6/27/2023
2.0.7 295 5/10/2023
2.0.6 235 3/31/2023
2.0.5 318 2/20/2023
2.0.4 123 2/10/2023
2.0.3 125 1/26/2023
2.0.2 137 11/3/2022
2.0.1 109 10/11/2022
2.0.0 146 8/25/2022
1.0.1 160 4/1/2022
1.0.0 401 12/22/2021
1.0.0-alpha 137 12/18/2021