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

Get close icons from string #60

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ThisIsMonta
Copy link

Not so many changes, just a function that takes a string and return an approximate icon.

I'd be happy to develop the idea.

Problem idea :

I'm making a list of user preferences which can be added manually from the user, but he is allowed only to write the preference (cannot pick an icon), so what if i take that preference text and estimate an icon for that ?.

Result :

image

@ziofat
Copy link
Owner

ziofat commented Oct 13, 2023

I don't think it is a good idea to use firstWhere to find close icon. Actually there are aliases for icons in official icon set. It's could be better to find them in aliases. However this approach may break tree-shaking.

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

Successfully merging this pull request may close these issues.

None yet

2 participants