Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change color react icon

// Use IconContext as mentioned in the Docs.
// https://github.com/react-icons/react-icons#configuration
function BlueLargeIcon() {
  return (
    <IconContext.Provider
      value={{ color: 'blue', size: '50px' }}
    >
      <div>
        <FaBeer />
      </div>
    </IconContext.Provider>
  );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #color #react #icon
ADD COMMENT
Topic
Name
5+7 =