There are a diverse ways in adding FontAwesome in a NextJS Project.
Here is my favourite and most recommended approach.
Install the following:
1. ๐ React FontAwesome
npm install @fortawesome/react-fontawesome
or
yarn add @fortawesome/react-fontawesome
2. ๐ FontAwesome SVG Core
npm install @fortawesome/fontawesome-svg-core
or
yarn add @fortawesome/fontawesome-svg-core
3. ๐ Fontawesome Free SVG Solid Icons
npm install @fortawesome/free-solid-svg-icons
or
yarn add @fortawesome/free-solid-svg-icons
4. ๐ FontAwesome Free Brand Icons
npm install @fortawesome/free-brands-svg-icons
or
yarn add @fortawesome/free-brands-svg-icons
Top comments (0)