konradkalemba / tabler-icons-react

🎨 Tabler Icons for React
https://tabler-icons-react.vercel.app
MIT License
198 stars 9 forks source link

Rename or prepend the names of the icon components. #11

Closed Vizorous closed 2 years ago

Vizorous commented 2 years ago

As it stands, this library contains icons with the exact names used by many popular component libraries. e.g. :- Container, Menu, Table, Tag, Space, Stack, Album, Align, Box.

It's suffice to say that it is quite annoying to develop when you're accidently importing the wrong component every time you auto import a heavily used component like Container from basically any UI library and you get an icon as the import rather than the actual component.

I would like to suggest to prepend the names of the icon components with a word like "Tabler" so it would say "TablerContainer" instead of Container. This will eliminate the issues with imports.

konradkalemba commented 2 years ago

I understand your issue, however as of today I don't plan to change the naming of the icons because it would result in a breaking change.