Skip to main content

BlazorOcticons by Evgeniy K.

NuGet / site data

Nuget GitHub last commit GitHub Repo stars

Details

Info

info

Name: BlazorOcticons

Package Description

Author: Evgeniy K.

NuGet: https://www.nuget.org/packages/BlazorOcticons/

You can find more details at https://github.com/BlazorOcticons/BlazorOcticons

Source: https://github.com/BlazorOcticons/BlazorOcticons

Author

note

Evgeniy K. Alt text

Original Readme

note

Backup Status .NET GitHub Nuget (with prereleases)

image

BlazorOcticons

BlazorOcticons is an easy-to-use GitHub Octicons built as customizable .razor components.

NuGet PackageDescription
BlazorOcticonsMain package which contains only .razor components
BlazorOcticonsGeneratorHelper package which contains Source Generators for Octicons

Installation

  1. Install the BlazorOcticons NuGet package:
dotnet add package BlazorOcticons
  1. In the _Imports.razor file add @using BlazorOcticons.Octicons:

@using System.Net.Http
@using System.Net.Http.Json
...
@using Microsoft.AspNetCore.Components
@using Microsoft.JSInterop
@using BlazorOcticons.Octicons

  1. That's it! Now you can use the components in your project.

Usage

Inside your code, use any of GitHub Octicons as .razor components:

<div class="p-3">
...
<MarkGithub16 Color="#702AF7" Size="48"/>
...
</div>

Contribute

All contributions are welcome! Feel free to raise any issues (bugs or feature requests), submit pull requests, etc.

About

note

Generates Blazor components for GitHub Octicons SVG icons or from svg.

Easily integrate GitHub Octicons into your Blazor applications.

How to use

Example (source csproj, source files)

This is the CSharp Project that references BlazorOcticons

<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>
</PropertyGroup>

<ItemGroup>
<AdditionalFiles Include="andrei-16.svg" />
</ItemGroup>



<ItemGroup>
<PackageReference Include="BlazorOcticons" Version="1.3.0" />
<PackageReference Include="BlazorOcticonsGenerator" Version="1.3.0">
</PackageReference>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.1" PrivateAssets="all" />
</ItemGroup>
<!-- Use only local test icons -->
<ItemGroup>
<AdditionalFiles Remove="$(BlazorOcticonsIconsPath)**\*.svg" />
</ItemGroup>
<ItemGroup>
<Folder Include="Octicons\" />
</ItemGroup>


<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
</Project>




Generated Files

Useful

Download Example (.NET C#)

Share BlazorOcticons

https://ignatandrei.github.io/RSCG_Examples/v2/docs/BlazorOcticons

Category "Blazor" has the following generators:

1 BadIdeas.Icons.FontAwesome Nuget GitHub Repo stars 2025-08-03

2 Blazor.TSRuntime Nuget GitHub Repo stars 2025-08-02

3 Blazorators Nuget GitHub Repo stars 2024-01-22

4 BlazorOcticons Nuget GitHub Repo stars 2025-12-14

5 GoLive.Generator.BlazorInterop Nuget GitHub Repo stars 2024-11-09

See category

Blazor