jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
585 stars 61 forks source link

adding a class to the svg tag? #7

Closed baradhili closed 3 years ago

baradhili commented 3 years ago

If I wanted to add a class to the svg tag - is there a way to do it? currently -

...

would like it to be more like

...
baradhili commented 3 years ago

ok solved it by trying the obvious :)

adding class="c-icon" put the class in the svg