I am trying to style the material icon in my react app using google material icon webapi.
I have tried this but it is not working. The icon is showing but the style I am applying to it is not working. They are not even showing when I inspect them. I want to give it a position absolute and move it around.
const ArrowIcon = (props) => (
<i className="material-icons-outlined"> {props.icon} </i>
);
const LeftBtn = styled(ArrowIcon)`
position:absolute;
font-size:100px;
`;
const RightBtn = styled(ArrowIcon)``;
return (
<LeftBtn icon = {"arrow_back"} />
<RightBtn icon = {"arrow_forward"}/>
)
EDIT: i just found the answer that worked for me ... here is the link , it was just below the method i was trying before.