0

I converted svg into React Component using https://www.smooth-code.com/open-source/svgr/playground/

When I placed it in an app component it crops the image. What is the proper way to resize/scale svg inside a component without affecting the image.

You can find the svg code here https://pastebin.com/KbwYDCDP
Dev
  • 67
  • 10
  • Try removing the width and height of the svg element. Since there is a viewBox attribute the svg element should take the parent's width. – enxaneta Nov 09 '19 at 11:10
  • Tried removing height and width, the image then just disappers. You can check svg code here https://pastebin.com/KbwYDCDP – Dev Nov 09 '19 at 12:16

0 Answers0