leshak / svelte-icons-pack

MIT License
61 stars 3 forks source link

Add `viewBox` attribute to Icon.svelte #7

Closed wmmiii closed 1 year 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 7 months ago

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

leshak commented 7 months ago

updated in 2.1.1 :)