Open needim opened 1 year ago
Hi, currently if we pass a className prop to any Icon component we are losing tabler-icon tabler-icon-${iconName} classes because it is overwriting with ...rest.
tabler-icon tabler-icon-${iconName}
...rest
It is nice to keep them so we can define a default stroke-with via CSS.
.tabler-icon { stroke-width: 1.25; }
https://github.com/tabler/tabler-icons/blob/74838ded9980b6f134bb6f7edcf916cca4a2d97f/packages/icons-react/src/createReactComponent.js#L6-L19
Hi, thanks for submitting issue We will fix it to combine attributes correctly
Thanks 👍
@codecalm has there been any progress on this? Would you accept a PR?
Hi, currently if we pass a className prop to any Icon component we are losing
tabler-icon tabler-icon-${iconName}
classes because it is overwriting with...rest
.It is nice to keep them so we can define a default stroke-with via CSS.
https://github.com/tabler/tabler-icons/blob/74838ded9980b6f134bb6f7edcf916cca4a2d97f/packages/icons-react/src/createReactComponent.js#L6-L19