An Angular wrapper for emoji-button
You can install to your angular project using this command :
npm install @joeattardi/emoji-button
npm install ngx-emoji-button
To use ngx-emoji-button you can import it directly to your module and use it with this code :
<ngx-emoji-button
[categories] = "['smileys', 'animals', 'objects', 'people']"
[style] = "'native'"
(emojiPicked) = "handleEmojiPicked($event)"
>
</ngx-emoji-button>
Handle the output :
handleEmojiPicked(emoji: any){
this.selectedEmoji = emoji;
console.log('Selected emoji ' , emoji);
}
As input we can pass the options to be used emoji-button. A full list can be found here : Options
This is still a first version more improvements are to come !