SvgIcons 0.1.7
See the version list below for details.
dotnet add package SvgIcons --version 0.1.7
NuGet\Install-Package SvgIcons -Version 0.1.7
<PackageReference Include="SvgIcons" Version="0.1.7" />
paket add SvgIcons --version 0.1.7
#r "nuget: SvgIcons, 0.1.7"
// Install SvgIcons as a Cake Addin #addin nuget:?package=SvgIcons&version=0.1.7 // Install SvgIcons as a Cake Tool #tool nuget:?package=SvgIcons&version=0.1.7
SvgIcons
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 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 was computed. 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. |
-
net6.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SvgIcons:
Package | Downloads |
---|---|
StaticSharp.Core
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.