SvgIcons 0.1.10

dotnet add package SvgIcons --version 0.1.10
NuGet\Install-Package SvgIcons -Version 0.1.10
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="SvgIcons" Version="0.1.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SvgIcons --version 0.1.10
#r "nuget: SvgIcons, 0.1.10"
#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 SvgIcons as a Cake Addin
#addin nuget:?package=SvgIcons&version=0.1.10

// Install SvgIcons as a Cake Tool
#tool nuget:?package=SvgIcons&version=0.1.10

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last updated
0.1.10 252 2/16/2023
0.1.9 226 2/2/2023
0.1.8 223 2/2/2023
0.1.7 2,405 1/5/2023
0.1.6 276 1/5/2023
0.1.5 284 1/5/2023
0.1.4 274 1/5/2023
0.1.3 253 12/29/2022
0.1.2 261 12/26/2022
0.1.1 252 12/26/2022
0.1.0 263 12/26/2022