radix-ui / icons

A crisp set of 15×15 icons designed by the @workos team.
https://radix-ui.com/icons
MIT License
2.12k stars 104 forks source link

Namespace over icon files? #141

Closed kyeshmz closed 1 year ago

kyeshmz commented 1 year ago

Hi!

My team and I really like working with the icons that the team have been cooking up! We are fixing some kind of flutter wrapper over the icons to use in the Flutter platform here. https://github.com/kyeshmz/radix-icons-flutter

Some icons such as switch use a reserved name, commonly used in many programming languages. Is there some alternative that can be done here?

Material design wraps everything with MD, but was just wondering what would be the case here, maybe something like R5i?

https://material.io/develop/web/components/switches

vladmoroz commented 1 year ago

We don't plan on adding any prefixes or suffixes. Our React icon components are exported as SwitchIcon, TextIcon, etc. You could do the same in your package or pick any other prefix/suffix you like.

kyeshmz commented 1 year ago

Will def look into those components! Seems better to handle all the use cases for each platform, sounds reasonable, thanks. Will update on this, once it is more presentable