A React component for the font-awesome icon library.
If you are using Font Awesome v5+, please use the official React component!. react-fontawesome
does not support FontAwesome v5!
This project is no longer actively maintained. Please try and use the official component above if you are able!
npm install --save react-fontawesome
Note: This component does not include any of the Font Awesome CSS or fonts, so you'll need to make sure to include those on your end somehow, either by adding them to your build process or linking to CDN versions.
The fastest way to get started is to import FontAwesome with a link tag in your page's <head>
:
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
You can change the version number to use whatever version of FontAwesome you'd like.
If you're using WebPack, you will need to install FontAwesome, import the FontAwesome Sass/Less, and configure the font path. Please see this blog post