mdi-react
mdi-react copied to clipboard
Prevent automatic icon resize
Following this question on StackOverflow, I found an error that should be fixed. The line here should change from :
<svg {...props} className={className} width={size} height={size} fill={color} viewBox="0 0 24 24">
to
<svg {...props} className={className} width={size} height={size} fill={color} viewBox="0 0 24 24" style={{ minWidth: size }}>
Perhaps even add maxWidth: size to prevent oversizing as well.