Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace over icon files? #141

Closed
kyeshmz opened this issue Oct 3, 2022 · 2 comments
Closed

Namespace over icon files? #141

kyeshmz opened this issue Oct 3, 2022 · 2 comments

Comments

@kyeshmz
Copy link

kyeshmz commented Oct 3, 2022

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
Copy link
Collaborator

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
Copy link
Author

kyeshmz commented Oct 4, 2022

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

@kyeshmz kyeshmz closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants