Heroicons.AspNetCore.Mvc.TagHelpers
3.1.3
dotnet add package Heroicons.AspNetCore.Mvc.TagHelpers --version 3.1.3
NuGet\Install-Package Heroicons.AspNetCore.Mvc.TagHelpers -Version 3.1.3
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.3" />
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.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Heroicons.AspNetCore.Mvc.TagHelpers, 3.1.3"
#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.3 // Install Heroicons.AspNetCore.Mvc.TagHelpers as a Cake Tool #tool nuget:?package=Heroicons.AspNetCore.Mvc.TagHelpers&version=3.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Heroicons.AspNetCore
Heroicons that are easy to use in ASP.NET Core MVC as TagHelpers.
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, eitherSolid
(24x24)Outline
(24x24),Mini
(20x20), orMicro
(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 | Versions 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.3 | 213 | 12/16/2024 |
3.1.2 | 4,259 | 7/11/2024 |
3.1.1 | 517 | 6/18/2024 |
3.1.0 | 1,708 | 3/25/2024 |
3.0.0 | 2,712 | 12/29/2023 |
2.1.0 | 1,120 | 12/12/2023 |
2.0.8 | 5,791 | 6/27/2023 |
2.0.7 | 299 | 5/10/2023 |
2.0.6 | 239 | 3/31/2023 |
2.0.5 | 322 | 2/20/2023 |
2.0.4 | 127 | 2/10/2023 |
2.0.3 | 131 | 1/26/2023 |
2.0.2 | 141 | 11/3/2022 |
2.0.1 | 113 | 10/11/2022 |
2.0.0 | 150 | 8/25/2022 |
1.0.1 | 166 | 4/1/2022 |
1.0.0 | 407 | 12/22/2021 |
1.0.0-alpha | 139 | 12/18/2021 |