Templarian / MaterialDesign-React

Dist for Material Design Icons React Component for JS/TypeScript
https://materialdesignicons.com
MIT License
139 stars 20 forks source link

add a view-box prop #77

Closed ragnaroks closed 1 year ago

ragnaroks commented 1 year ago
<Icon path="M10 3.5A6.5 6.5 0 0 0 3.5 10A.75.75 0 0 1 2 10a8 8 0 1 1 8 8a.75.75 0 0 1 0-1.5a6.5 6.5 0 1 0 0-13z" spin />

<Icon path="M10 3.5A6.5 6.5 0 0 0 3.5 10A.75.75 0 0 1 2 10a8 8 0 1 1 8 8a.75.75 0 0 1 0-1.5a6.5 6.5 0 1 0 0-13z" spin viewBox="0 0 20 20" />

this path designed by view-box="0 0 20 20", could you add a viewBox prop to set view-box attribute?

Templarian commented 1 year ago

The @mdi/react package will stay with a fixed viewBox. We're investigating building a more general component for multi-layer iconography that will be published under our org @pictogrammers/*.