net8.0
Stack Overflow's shared icon set
Published
Oct 28, 2026
25d ago
Total Downloads
159.7K
159,657
Install
dotnet add package StackExchange.StacksIcons --version 7.1.0
| Product | Versions |
|---|---|
| .NET |
README
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.Answer
@Svg.Spot.Wave
// the `With` method can take css classes and title text to add to the svg
@Svg.Answer.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.Answer;
HtmlString icon = Svg.Lookup[iconName]; // icon is now set to the value in Svg.Answer
StacksSpot spotName = StacksSpot.Wave;
HtmlString spot = Svg.Spot.Lookup[spotName]; // spot is now set to the value in Svg.Spot.Wave
Changes from Previous Version
No structural changes between v7.0.0 and v7.1.0.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.