Answers for "how to add size to my icon component in material ui"

1

how to resize a icon using material ui

<SomeIcon className="svg_icons"/>

.svg_icons{
  transform: scale(1.8);
}
Posted by: Guest on March-16-2020
0

material ui change icon size on xs screen

import React from "react";
import ArrowRightAlt from "@material-ui/icons/ArrowRightAlt";
import Box from "@material-ui/core/Box";

export default function App() {
  return (
    <Box
      clone
      color={{ xs: "red", sm: "orange", md: "yellow", lg: "green", xl: "blue" }}
      fontSize={{ sm: 48, md: 96, lg: 192, xl: 384 }}
    >
      <ArrowRightAlt />
    </Box>
  );
}
Posted by: Guest on April-18-2021

Code answers related to "how to add size to my icon component in material ui"

Browse Popular Code Answers by Language