CopyPastor

Detecting plagiarism made easy.

Score: 0.8929162921270979; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2023-09-19
by Eliav Louski

Original Post

Original - Posted on 2023-09-19
by Eliav Louski



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can use [react-svg-resizer ](https://www.npmjs.com/package/react-svg-resizer). this is a simple wrapper that can scale any SVG element(including MUI-icons).
[here's codesandbox with demo with examples](https://codesandbox.io/s/react-svg-resizer-demo-c2s7n3?file=/src/App.tsx)
```jsx import YourIcon from "@mui/icons-material/YourIcon";

<SvgResizer size={50}> <YourIcon /> </SvgResizer> ```
The Icon can be any SVG element. a custom one, or MUI Icon.
You can use [react-svg-resizer ](https://www.npmjs.com/package/react-svg-resizer). this is a simple wrapper that can scale any SVG element.
[here's codesandbox with demo with examples](https://codesandbox.io/s/react-svg-resizer-demo-c2s7n3?file=/src/App.tsx)
```jsx import YourIcon from "@mui/icons-material/YourIcon";

<SvgResizer size={50}> <YourIcon /> </SvgResizer> ```
The Icon can be any SVG element, and the this component would tranform the inner svg into the desired size.

        
Present in both answers; Present only in the new answer; Present only in the old answer;