BlazorOcticons is an easy-to-use GitHub Octicons built as customizable .razor
components.
NuGet Package | Description |
---|---|
BlazorOcticons | Main package which contains only .razor components |
BlazorOcticonsGenerator | Helper package which contains Source Generators for Octicons |
- Install the BlazorOcticons NuGet package:
dotnet add package BlazorOcticons
- 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
- That's it! Now you can use the components in your project.
Inside your code, use any of GitHub Octicons as .razor
components:
<div class="p-3"> ... <MarkGithub16 Color="#702AF7" Size="48"/> ... </div>
All contributions are welcome! Feel free to raise any issues (bugs or feature requests), submit pull requests, etc.