Home > OS >  Change color of font-awesome icons with React
Change color of font-awesome icons with React

Time:05-25

how do I change color of FA icon using React? Nothing worked for me.

Thank you.

CodePudding user response:

You can use color props in Fontawesome component. like below

<FontAwesomeIcon icon = "faCaretDown"   color="green"/ >

or else you can use the below, usually fontawsome inherit colour and css size

<span style="font-size: 48px; color: Dodgerblue;">
    <i ></i>
</span>
  • Related