Answer the question
In order to leave comments, you need to log in
How to handle SVG exported from sketch in VueJS?
I'm using the system suggested by the VueJS documentation: https://vuejs.org/v2/cookbook/editable-svg-icons.html
It sets the base icon's viewbox to 0 0 100 100, and apparently this value doesn't change anymore. But when I export the icons from the sketch, different values of this viewbox are possible. And it turns out that when you use an icon, the code will look like this:
<icon-base
width="12"
height="12"
viewbox="0 0 40 40" <---- вот это значение будет везде разным
icon-name="write"
><icon-write /></icon-base>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question