emoji-picker-element-lib

2.1.4 • Public • Published

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.

Package Sidebar

Install

npm i emoji-picker-element-lib

Weekly Downloads

0

Version

2.1.4

License

ISC

Unpacked Size

2.49 kB

Total Files

4

Last publish

Collaborators

  • douglascx