StackExchange.StacksIcons 6.1.0

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

// Install StackExchange.StacksIcons as a Cake Tool
#tool nuget:?package=StackExchange.StacksIcons&version=6.1.0                

Stacks-Icons

dotnet add package StackExchange.StacksIcons

This package provides an SVG helper for use in Razor and other contexts:

@using StackExchange.StacksIcons

<div>
  // icons and spots return an `HtmlString` for safe use in Razor
  @Svg.Accessibility
  @Svg.Spot.Wave

  // the `With` method can take css classes and title text to add to the svg
  @Svg.AlertCircle.With(cssClass: "fc-danger", title: "foo")
</div>

Enum definitions and lookup dictionaries for all icons/spots are also provided:

using StackExchange.StacksIcons;

StacksIcon iconName = StacksIcon.Accessibility;
HtmlString icon = Svg.Lookup[iconName]; // icon is now set to the value in Svg.Accessibility

StacksSpot spotName = StacksSpot.Wave;
HtmlString spot = Svg.Spot.Lookup[spotName]; // spot is now set to the value in Svg.Spot.Wave
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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.1.0 67 1/27/2025
6.0.1 31,709 2/21/2024
6.0.0 27,222 10/6/2023
6.0.0-rc.2 155 9/12/2023
5.5.0 3,055 8/7/2023
5.4.0 1,323 7/17/2023
5.3.1 7,855 2/3/2023
5.3.0 324 2/3/2023
5.2.0 333 1/30/2023
5.1.0 771 1/10/2023
5.0.0 366 1/4/2023