leshak / svelte-icons-pack

MIT License
59 stars 3 forks source link

Add `viewBox` attribute to Icon.svelte #7

Closed wmmiii closed 9 months ago

wmmiii commented 1 year ago

Some icon sets do not supply a viewBox attribute on their SVGs. This change allows the caller of <Icon ... /> to specify a custom viewBox such that icon scaling works correctly when using a non-native icon size.

RenanGalvao commented 3 months ago

Could you please update this code on npm? This option is still missing there.

leshak commented 3 months ago

updated in 2.1.1 :)