DEV Community

Discussion on: Easiest Way To Use Icons In React

jackedwardlyons profile image
Jack Lyons • Edited on

Thanks for this!

I also noticed that if you are using styled-components in your app, you can wrap the icon component and style it that way:

import { AiFillAlert } from "react-icons/ai";

const StyledIcon = styled(AiFillAlert)`
  color: gold;
  transform: scale(2);
menaiala profile image
Menai Ala Eddine