Answers for "react icons in css"

6

install react icon

npm install react-icons --save
Posted by: Guest on August-20-2020
1

style react icons

function BlueLargeIcon() {
  return (
    <IconContext.Provider
      value={{ color: 'blue', size: '50px' }}
    >
      <div>
        <FaBeer />
      </div>
    </IconContext.Provider>
  );
}
Posted by: Guest on April-16-2021
0

How to use css on a react icon

const style = { color: "white", fontSize: "1.5em" }
<FaFacebookF style={style} />

// API
<FaFacebookF color="white" fontSize="1.5em" />
Posted by: Guest on July-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language