Last active
April 24, 2022 23:29
-
-
Save dhAlcojor/5b8b7c51cc813e30f4a5bcfa91b54f11 to your computer and use it in GitHub Desktop.
Font Awesome library with Gatsby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { library } from '@fortawesome/fontawesome-svg-core'; | |
import { faChevronLeft } from '@fortawesome/free-solid-svg-icons'; | |
export function onClientEntry() { | |
library.add(faChevronLeft); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | |
... | |
<FontAwesomeIcon icon="chevron-left" /> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment