remove white space from SVG in react

hey, in regular html I would use svgsprite for this but it doenst work for react ,How do implement this with react?
No description
2 Replies
Dries
DriesOP14mo ago
nvm, I found the answer myself if anyone is wondering how I did it with this website : https://svgcrop.com/
SVG Crop
SVG Crop
Remove blank space from around any SVG instantly.
ἔρως
ἔρως14mo ago
for people looking for this without react, you can simply change the viewBox attribute to the x, y, width and height of the area you want in this case, it is that window, so, you can find these values very easily this way, you also dont have to upload your files to some server for that
Want results from more Discord servers?
Add your server