![]() |
VOOZH | about |
dotnet add package SvgIcons --version 0.1.10
NuGet\Install-Package SvgIcons -Version 0.1.10
<PackageReference Include="SvgIcons" Version="0.1.10" />
<PackageVersion Include="SvgIcons" Version="0.1.10" />Directory.Packages.props
<PackageReference Include="SvgIcons" />Project file
paket add SvgIcons --version 0.1.10
#r "nuget: SvgIcons, 0.1.10"
#:package SvgIcons@0.1.10
#addin nuget:?package=SvgIcons&version=0.1.10Install as a Cake Addin
#tool nuget:?package=SvgIcons&version=0.1.10Install as a Cake Tool
SvgIcons is a collection of popular icons in the form of a .NET dll written in C#. The icons are embedded into the DLL's resources for quick access, as using them as a git-submodule can be slow with thousands of icons. The DLL also contains generated classes to allow you to access the icons with autocomplete.
Currently, the library includes two sets of icons:
| name | repository | site |
|---|---|---|
| MaterialDesignIcons | Templarian/MaterialDesign | https://materialdesignicons.com |
| SimpleIcons | simple-icons/simple-icons | https://simpleicons.org |
SvgIcons is available as a NuGet package
Install-Package SvgIcons
Once you have a reference to the DLL, you can access the icons through the
SvgIcons.SimpleIcons and SvgIcons.MaterialDesignIcons static classes.
The Icon class represents a single icon, and has a GetSvg() method that returns the icon as an SVG string, as well as Width and Height properties that return the dimensions of the icon.
using SvgIcons;
// Access the GitHub icon from the SimpleIcons set
Icon githubIcon = SimpleIcons.GitHub;
// Get the SVG string for the icon
string svg = githubIcon.GetSvg();
// Get the width and height of the icon
float width = githubIcon.Width;
float height = githubIcon.Height;
⭐ If you found the SvgIcons library helpful and would like to show your support for the project, please consider giving the repository a star on GitHub.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on SvgIcons:
| Package | Downloads |
|---|---|
|
StaticSharp.Core
Package Description |
This package is not used by any popular GitHub repositories.