I am trying to use font Awesome icon as Pseudo-Element with content property so that importing their whole library is not needed.
The output shows up a squared box instead of the actual icon . I think i am missing something here
<div>
<span class="icon"></span>Text After icon
</div>
.icon::before {
display: inline-block;
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f007";
font-size: 30px;
}