Devigner.Icons.Blazor, from NuGet. 2,496 symbols, each in outline, twotone, bold, bulk and broken. The same artwork as @devigner-ui/icons, rendered from it rather than redrawn. .NET 8 and newer, in every render mode.
dotnet add package Devigner.Icons.BlazorAdd @using Devigner.Icons.Blazor to _Imports.razor, then:
<DvIcon Icon="DvIcons.BagStraps" class="size-6" />
<DvIcon Icon="DvIcons.BagStraps" Variant="IconVariant.Bold" class="size-6 text-violet-600" />Any other attribute (class, style, @onclick, aria-label) lands on the <svg>. Strokes and fills are currentColor, so size and colour come from CSS. The assembly is marked trimmable, and each icon is a property of its own, so the trimmer can drop the ones an app never reads.
Names are the icon's name; one that starts with a digit gets a _ in front (DvIcons._3dCube).
| Parameter | Type | Default | What it does |
|---|---|---|---|
Icon |
IconData |
required | Any DvIcons.* |
Variant |
IconVariant |
Outline |
Outline, TwoTone, Bold, Bulk or Broken |
StrokeWidth |
double? |
1.5 |
Line weight of Outline, TwoTone and Broken |
Icons render aria-hidden="true" by default, because an icon beside its own label is otherwise read out twice. An aria-label promotes one to an image.