Answer the question
In order to leave comments, you need to log in
Svg as a component in Vue?
Hello everyone, in React you can pass an svg image as a component, but is it possible to do this in vue? And how else can you set background-image in styles in vue?
Answer the question
In order to leave comments, you need to log in
In a single file component, use the svg root element. And you will be happy.
And the styles are described in the documentation, they are transferred by an object in the format of writing ordinary styles in JS (backgroundImage? for example).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question