ealush / emoji-picker-react

The most popular React Emoji Picker
https://ealush.com/emoji-picker-react/
MIT License
991 stars 166 forks source link

How to detect skin-tone change #394

Closed wfischer42 closed 4 months ago

wfischer42 commented 5 months ago

I want to be able to set and update a user default skin tone preference when the user changes the skin tone in the emoji picker component. Ideally, this would be through a simple onSkintoneChange event, or something similar. Currently the user has to select an emoji before the parent can see the skin tone preference.

Is there any built-in way to do that currently? Otherwise, I'd love it as a feature.

ealush commented 5 months ago

Hi, @wfischer42 this sounds right and pretty useful. Would you like implementing yourself it with my support? I think that your callback proposal can work pretty well.