cpsoinos / nuxt-svgo

SVGO loader for Nuxt
MIT License
139 stars 10 forks source link

Icon dont starts with default svg size #273

Closed mitraecp closed 3 months ago

mitraecp commented 3 months ago
<svgo-social-discord
                    color="var(--grey-700)"
                    class="w-[16px] h-[16px]"
                />

I import an icon, but the sizes dont keep values on viewbox or original svg file, i need to set on every icon the sizes?

jd1378 commented 3 months ago

the size is controlled by font size by default to disable font control, use :font-controlled="false"

the default svgo configuration is here, you can change the behavior if you need to

you can also make your own component with your own defaults. see customComponent option.