Jenin.FontAwesome.Blazor
1.0.1
See the version list below for details.
dotnet add package Jenin.FontAwesome.Blazor --version 1.0.1
NuGet\Install-Package Jenin.FontAwesome.Blazor -Version 1.0.1
<PackageReference Include="Jenin.FontAwesome.Blazor" Version="1.0.1" />
paket add Jenin.FontAwesome.Blazor --version 1.0.1
#r "nuget: Jenin.FontAwesome.Blazor, 1.0.1"
// Install Jenin.FontAwesome.Blazor as a Cake Addin #addin nuget:?package=Jenin.FontAwesome.Blazor&version=1.0.1 // Install Jenin.FontAwesome.Blazor as a Cake Tool #tool nuget:?package=Jenin.FontAwesome.Blazor&version=1.0.1
Markdown File
Jenin FontAwesome Blazor
- Free FontAwesome 6 components for ASP.NET Blazor
- .NET 6.0+ with Blazor WebAssembly or Blazor Server (other hosting models not tested yet, .NET 6.0 fully supported)
Getting started
Prerequisites
Jenin.FontAwesome.Blazor components have the following requirements:
- .NET 6.0 or newer
- Blazor WebAssembly or Blazor Server hosting model (other options not tested yet)
Installation
1. Install the package
Find the Jenin.FontAwesome.Blazorp package through NuGet Package Manager or install it with following command:
dotnet add package Jenin.FontAwesome.Blazor
2. Add CSS & JavaScript references
A. CSS
Add the following to your HTML head section, it's either index.html
, _Host.cshtml
or _Layout.cshtml
depending on whether you're running WebAssembly or Server:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="~/" />
...
<link href="/your-path-to-fontawesome/css/all.css" rel="stylesheet">
...
</head>
<body>
...
</body>
</html>
For more details of how host yourself - Font Awesome Host Yourself - Web Fonts
B. JavaScript
At the end of HTML <body>
section of either index.html
, _Host.cshtml
or _Layout.cshtml
add this:
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
...
<script src="_content/Jeninnet.FontAwesome.Blazor/js/fontawesome-Svg[nest]-config.js" type="text/javascript"></script>
<script src="your-path-to-fontawesome/js/all.min.js" type="text/javascript"></script>
<script src="_content/Jeninnet.FontAwesome.Blazor/js/fontawesome-config-utilities.js" type="text/javascript"></script>
</body>
</html>
3. Import namespaces
Add following to your _Imports.razor
file:
@using Jenin.FontAwesome.Blazor;
@using Jenin.FontAwesome.Blazor.Extensions
@using Jenin.FontAwesome.Blazor.Components
@using Jenin.FontAwesome.Blazor.Transformations
@using Jenin.FontAwesome.Blazor.Animations
Ready, set, go!
Are yoy ready?
<button class="btn btn-outline-primary mb-4 ms-2 d-flex align-items-center gap-2" @onclick=GotoStartPage>
<Icon IconStyle=IconStyle.Solid IconSize=IconSize.X02 IconName="fa-bell" Animation=@Animation.Shake() Color="gold"/>
<span>Are yoy ready?</span>
</button>
@code{
[Inject]
private NavigationManager NavigationManager{ get; set; }
private void GotoStartPage() => NavigationManager.NavigateTo("/icon-basics-style");
}
Copy
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.