/ngx-emoji-button

:bento: An angular wrapper for emoji-button

Primary LanguageTypeScript

emoji-button

An Angular wrapper for emoji-button

Installation

You can install to your angular project using this command :

npm install @joeattardi/emoji-button
npm install ngx-emoji-button 

Basic usage

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

Note

This is still a first version more improvements are to come !