Heroicons.AspNetCore
🖼 Heroicons (https://heroicons.com/) that are easy to use in ASP.NET Core MVC as TagHelpers.
Install / Use
/learn @tompazourek/Heroicons.AspNetCoreREADME
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.cshtmlfile and add the following line:
@addTagHelper *, Heroicons.AspNetCore.Mvc.TagHelpers
- In your
*.cshtmlviews, you can then use the icon as tag helper:
<heroicon kind="Solid" name="Envelope" />
- The
kindcorresponds to style kind enum, currently, eitherSolid(24x24)Outline(24x24),Mini(20x20), orMicro(16x16). - The
namecorresponds 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.
Related Skills
node-connect
333.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
333.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.0kCommit, push, and open a PR
