Closed wmmiii closed 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.
viewBox
<Icon ... />
Could you please update this code on npm? This option is still missing there.
updated in 2.1.1 :)
Some icon sets do not supply a
viewBox
attribute on their SVGs. This change allows the caller of<Icon ... />
to specify a customviewBox
such that icon scaling works correctly when using a non-native icon size.