fa-react-icon
🍺 Hi there, font-awesome icons for react lovers <3, Thanks...
Installation
Using NPM:
npm i fa-react-icon
npm i font-awesome
import fontawesome css in your main file i.e index.js
;;//fontawesome css;
Usage
Import it where you want use ReactFontawesome Icon //I'm using in my home.js file
; //import here ReactFontawesome component; { superprops; thisstate = } { return <div> //use wherever you want <ReactFontawesome icon="file" size="4" color="orange"></ReactFontawesome> </div> ; } ;
Note
- add only name to icon, e.g
icon="file"
- no need to add full name like e.g
icon="fa fa-file"
- icon - font-awesome icon name will find here here
- size - icon size in
rem
. - color - you can give any valid value
e.g red, yellow, #fffff, #ff0000.
Author
Ajay Marathe
Copyright and License
Copyright 2019 Ajay Marathe. Code released under the MIT license.