I created a blazor webassembly hosted template dot net core 3.1. Then right clicked on project.Client/wwwroot/css folder and click on add client side library. Then selected font-awesome library in installed it. I added below line to index.html head.
<link href="css/font-awesome/css/fontawesome.css" rel="stylesheet"/>
I have libman.json of
{
"version": "1.0",
"defaultProvider": "cdnjs",
"libraries": [
{
"library": "font-awesome@5.11.2",
"destination": "wwwroot/css/font-awesome/"
}
]
}
I added just below line to default blazor template page counter (razor component). The intelisense finds the font:
@page "/counter"
<h1>Counter</h1>
<span class="fa fa-save"></span>
@code {}
but I only see a square