Emoji Button turns an ordinary button into an emoji picker. When the target button is clicked, the emoji picker will be shown and a callback will be executed when an emoji is picked.
- 💻 Vanilla JS, use with any framework
- 🔎 Emoji search
- 👍🏼 Skin tone variations
- ⏱ Recently used emojis
npm install --save emoji-button
;const button = document;const picker = ;picker;button;
Creates an Emoji Button emoji picker.
position: The position to display the picker relative to the reference element. Valid values are:
Shows the picker, positioning it relative to the given reference element. The reference element is usually the button or other element that was clicked to open the picker.
Hides the picker.
true if the picker is currently visible, and
false if not.
Adds an event listener. Currently there is only one event:
emoji: Fired when an emoji is picked. The callback is called with a single argument, the emoji character that was picked.