emoji-picker-react
emoji-picker-react copied to clipboard
Close picker back to reactions view after emoji selection
Is there a way to close the picker back to the emoji view after an emoji has been selected? I've tried using the open prop, and playing around with the reactionsDefaultOpen prop, but no luck.
Would be great if I could trigger as part of the onEmojiClick callback.
Hey @Timmwardion thanks for the interest in this feature. So far I did not add this capability simply because I am not sure what would the correct experience be UI-wise. I can provide an imperative API for retracting the picker to its reactions mode so you can do this with a function call, but I am simply not sure where best to put the "x" (???) button to let the user close it.
If you have an idea, I would love to hear your suggestion.
Hey @ealush!
I'm writing a chat application and am hoping to use reactions to give users a fast way of selecting their most used emoji. If they need one that's not on the reactions list I'd love them to be able to pick from the picker.
They only need to pick one at a time, so once one is selected, the picker just needs to close back to the reactions view. No x button needed I don't think.
I think an imperative API sounds like a perfect solution actually. That's much more flexible for my needs.
is there a way to close it as of this day ?
Iam also interested