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

Only use custom emojis

Open BoHuny opened this issue 1 year ago • 5 comments

Hello,

I wish to remove all native emojis from the picker to only use my custom emojis, is there a way to achieve that? Couldn't quite how to do this in the doc. Thanks in advance

BoHuny avatar Jun 20 '23 22:06 BoHuny

@BoHuny You mean you want to remove the tab bar entirely and only show custom emoji? You could probably accomplish this with a CSS rule to hide the tab bar.

nolanlawson avatar Jun 23 '23 05:06 nolanlawson

Hello! The issue is, if I just hide the tab bar, custom emojis still popup with the research bar, which I still need for my custom emojis. I found a workaround (using own datasource with one single unicode emoji) so I can still work with my use case. You can still change the behavior to remove native emojis if you think other users might have this problem Ty for your help and the library, works very well!

BoHuny avatar Jun 23 '23 22:06 BoHuny

@BoHuny Hmm, maybe you could try using a dataSource that is just an empty JSON array? I think that should remove the native emoji from the search results as well.

nolanlawson avatar Jun 24 '23 16:06 nolanlawson

Hello @nolanlawson The thing is, if I pass an empty array then this error is thrown image It only works when the JSON array contains at least one emoji

BoHuny avatar Jun 26 '23 21:06 BoHuny