emoji-picker-react icon indicating copy to clipboard operation
emoji-picker-react copied to clipboard

Add custom object with suggested emojis

Open olgaplaga opened this issue 3 years ago • 0 comments

So far there are two options to choose from while customizing suggestedEmojisMode:

  1. SuggestionMode.FREQUENT
  2. SuggestionMode.RECENT

both are based on the user's local storage.

What I need is a more advanced customization option, to add my own object with suggested emojis, where I can define what emojis I want to display as suggested.

For example:

suggestedEmojisMode={SuggestionMode.CUSTOM}
sugesstedCustomEmojis={["1F601", "1F602", "1F603"]}

There could be an option to pass an array of custom emojis unified codes (like 1f601). In my use case, it would be 6 emojis, but there is probably room to somehow validate the minimum and maximum amount.

olgaplaga avatar Oct 07 '22 14:10 olgaplaga