emoji-mart icon indicating copy to clipboard operation
emoji-mart copied to clipboard

Composing new categories from native emojis?

Open thomasgwatson opened this issue 2 years ago • 1 comments

I don't think prior issues or the documentation have addressed this, so asking here.

Goal: we want to offer a limited set of emojis based on our content types. For example, a different reactions set for posts that are type: discussion versus posts that are type: vote.

I've seen how custom emojis can be added. And how they can be placed into their own set of categories. But it isn't clear to me whether I can create custom categories that select from specific native emojis.

Is there some workaround currently possible for this or is this a new feature that is not currently covered by this library?

Thanks!

thomasgwatson avatar Sep 12 '22 21:09 thomasgwatson

Ok, appears that there is a way to achieve what I want. It is detailed in this post (assuming the APIs in 2019 haven't changed)

https://medium.com/upshotly/how-to-use-emoji-reaction-in-react-bd68e03ad7b8

Well, back in 2019, you could only include one custom category. Now you can include several. But I am guessing that the way of defining 'custom emojis' from the native set is still the same.

thomasgwatson avatar Sep 12 '22 22:09 thomasgwatson