SaraVieira / svg-to-jsx

Figma plugin to copy svg as a react component

Home Page:https://www.figma.com/c/plugin/749818562498396194/SVG-to-JSX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for viewBox property

aremu-smog opened this issue · comments

Hi Sara,

I observed that the exported jsx doesn't have viewBox property.

Without it, if you try to make the icon responsive by adjusting the sizes on mobile or tablet, it gets cut off.

What I have being doing is to manually add the viewBox property and the icon can be used at various sizes across various screens.

Thank you once again for this amazing plugin