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

Filter emoji #274

Open
AgustinTiseira opened this issue Sep 30, 2022 · 6 comments
Open

Filter emoji #274

AgustinTiseira opened this issue Sep 30, 2022 · 6 comments

Comments

@AgustinTiseira
Copy link

AgustinTiseira commented Sep 30, 2022

Hi everybody, i have a doubt. How can I filter the emojis displayed?
it would be useful to show only some categories similar to the "categories" attribute but also to be able to limit the emojis shown from that category.
for example:

<EmojiPicker categories={[ { category: 'smileys_people', name: 'Faces...', filterEmoji: ["Smile", "Grin", "Heart Eyes"] } ]} />

please if there is already a way to do this let me know. Thank you!

@ealush
Copy link
Owner

ealush commented Sep 30, 2022

Hey @AgustinTiseira 👋 thanks for opening this issue. That's a pretty useful suggestion. Let me iterate on it and see what I come up with.

@ealush
Copy link
Owner

ealush commented Oct 14, 2022

Sorry for taking some time. I've been traveling on vacation this past month (and still am!) so only had little availability to play with this, but here's an idea:

Instead of adding this property that's specific to your use case, instead I can add a predicate function to filter the emojis based on any criteria, their names, their unified code, etc...

Here's the PR with an example: #282

Please let me know if that solves it for you.

Published as an RC version on:
[email protected]

@ogrodev
Copy link

ogrodev commented Oct 27, 2022

Hey @ealush that works for me, I was having the same problem! It would be awesome to have this merged

@ricjohn-acosta
Copy link

ricjohn-acosta commented Jan 9, 2023

Wondering if you have a temporary solution for this @sweetsoul? Also would be nice if we could push forward with this one @ealush! Needing this feature too :D

@bennetmi
Copy link

@ealush was wondering if there was any update on this? Have enjoyed using this awesome menu, but would need to remove the gun and middle finger emojis to continue doing so. Would this make it possible?

@cwikio
Copy link

cwikio commented Jan 17, 2024

yeah, is that done? can we filter out emojis? Many thanks in advance.

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

6 participants