emoji-picker-element-lib
v2.1.4
Published
A simple, lightweight emoji picker for your web applications.
Downloads
3
Readme
emoji-picker-element-lib
A simple, lightweight emoji picker for your web applications.
Installation
Install emoji-picker-element-lib
using npm:
npm install emoji-picker-element-lib
Usage
First, include a container in your HTML for the emoji picker:
<div id="emoji-picker"></div>
Then, initialize and use the emoji picker in your JavaScript file:
import emojiPicker from 'emoji-picker-element-lib';
// Initialize the emoji picker
emojiPicker.init('#emoji-picker');
// Listen for the emoji-selected event
emojiPicker.on('emoji-selected', (event) => {
console.log('Selected emoji:', event.emoji);
});
Events
emoji-selected
: Fired when an emoji is selected. The event details contain the selected emoji.