tabler-icons
tabler-icons copied to clipboard
React components should append className prop
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.
.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?