A tag helper for SystemUIcons icon set.
$ dotnet add package SystemUIcons.TagHelperAn ASP.NET Core Tag Helper for System UIcons icon set.
Install-Package SystemUIcons.TagHelper
_ViewImports.cshtml to access from any view.@addTagHelper *, SystemUIcons.TagHelper
To render a symbol, use the <icon> tag.
![]()
If you want to optimize your page size, use the sprite sheet tag helper.
<icon-sprite-sheet></icon-sprite-sheet>
use-sprite to the octicon tag. This will reference the svg path in the sprite sheet<icon symbol="Airplay" use-sprite></icon>
You can go a step further and use the <include> tag to define only those icons that you actually use.
<icon-sprite-sheet>
<include symbol="Lock"></include>
<include symbol="Paperclip"></include>
</icon-sprite-sheet>
The above markup will create an svg tag with Lock and Paperclip being the only icons on your page.
The icons are licensed under the Unlicensed license. Link to icons: https://www.systemuicons.com/