VOOZH about

URL: https://www.nuget.org/packages/Blazicons/

⇱ NuGet Gallery | Blazicons 3.0.12




👁 Image
Blazicons 3.0.12

dotnet add package Blazicons --version 3.0.12
 
 
NuGet\Install-Package Blazicons -Version 3.0.12
 
 
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="Blazicons" Version="3.0.12" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Blazicons" Version="3.0.12" />
 
Directory.Packages.props
<PackageReference Include="Blazicons" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Blazicons --version 3.0.12
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Blazicons, 3.0.12"
 
 
#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.
#:package Blazicons@3.0.12
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Blazicons&version=3.0.12
 
Install as a Cake Addin
#tool nuget:?package=Blazicons&version=3.0.12
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Blazicons

Provides support for displaying SVG based icons in Blazor projects.

Check out the Demo Site.

👁 Nuget

👁 Build Status

Overview

Blazicons is a simple library consisting of one Blazor component, the Blazicon. A Blazicon component displays an SVG icon similar to how a font icon would be displayed.

Why Blazicons?

Why not just use font libraries to display icons? Blazicons provides a couple of benefits over using font icon libraries.

The first benefit is resource size. Blazicons is designed to leverage the SVG versions of the icons from popular icon libraries. Given Blazor's assembly trimming, only the icons used, rather than the entire library of icons are delivered to the client.

With Blazicons, an additional benefit is the ability to leverage intellisense. The various icons available in a given icon library are displayed with Visual Studio's intellisense options.

Getting Started

Select a Library

To get started using Blazicons, just install the Blazicons NuGet package of the desired icon library. The following options are currently among those available.

Add Import

Next add the Blazicons reference to the _Imports.razor file in the Blazor project.

@using Blazicons

Add Styles

There are two options for ensuring the Blazicons styles are available to the Blazor project. Most Blazor applications support scoped CSS. In these instances it is recommended to just ensure that the project styles.css file is referenced in the head tag section of the index.html/_Host.cshtml file.

<link href="My.App.styles.css" rel="stylesheet" />

As an alternative, the Blazicons CSS styles can be directly referenced in the index.html/_Host.cshtml file.

<link href="_content/Blazicons/css/blazicons.min.css" rel="stylesheet" />

Add a Blazicon

Finally, add the Blazicon component to your Blazor pages/components.

<Blazicon Svg="MdiIcon.Information"></Blazicon>

Parameters

Each parameter in a Blazor component has a rendering cost. Since it might be desirable to have many Blazicons on a page, maybe even in some sort of repeater control, one of the core principal when creating Blazicons was to limit the number of parameters.

As a result, a Blazicon only has one parameter, Svg. The Svg parameter is a special type of SvgIcon. These SvgIcon types are defined in the specific icon library Blazicon files.

Styling

A Blazicon is designed to be displayed with the size and color determined by current font size and color settings. Therefore, the size and color can easily be changed by adjusting the CSS font-size and color style attributes of the containing element.

<div style="font-size 200%; color: #f00;">
 <Blazicon Svg="Ionicon.ShapesSharp"></Blazicon>
</div>

Styling helper methods also are available on the SvgIcon object.

<Blazicon Svg='Ionicon.ShapesSharp.WithColor("#f00").WithSize("200%")'></Blazicon>
Product Versions Compatible and additional computed target framework versions.
.NET net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (10)

Showing the top 5 NuGet packages that depend on Blazicons:

Package Downloads
Blazicons.MaterialDesignIcons

Provides the Material Design Icons icon library packaged as Blazicons, SVG icon components for Blazor.

Blazicons.FontAwesome

Provides the Font Awesome icon library packaged as Blazicons, SVG icon components for Blazor.

Blazicons.FluentUI

Provides the Fluent UI icon library packaged as Blazicons, SVG icon components for Blazor.

Blazicons.Lucide

Provides the Lucide icon library packaged as Blazicons, SVG icon components for Blazor.

Blazicons.Bootstrap

Provides the Bootstrap icon library packaged as Blazicons, SVG icon components for Blazor.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.12 28,937 2/15/2026
3.0.12-beta 121 2/1/2026
2.2.39 65,619 6/28/2025
2.2.39-beta 168 6/28/2025
2.2.9-beta 118 2/1/2026
2.1.36-beta 164 6/28/2025
2.1.32-alpha 231 6/25/2025
2.1.31-alpha 225 6/25/2025
2.1.30 60,540 12/5/2024
2.1.30-beta 200 12/5/2024
2.1.29-alpha 200 12/5/2024
2.0.28 115,724 4/28/2024
2.0.28-beta 223 4/28/2024
2.0.26-alpha 244 4/24/2024
2.0.24-alpha 258 4/11/2024
2.0.23-alpha 246 4/11/2024
2.0.22-alpha 245 4/10/2024
1.2.20 7,746 10/30/2023
1.2.20-beta 246 10/30/2023
Loading failed