All Projects → joeattardi → Emoji Button

joeattardi / Emoji Button

Licence: mit
Vanilla JavaScript emoji picker component

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Emoji Button

vuemoji-picker
Vue 2 and 3 lightweight emoji picker.
Stars: ✭ 53 (-91.8%)
Mutual labels:  emoji, emoji-picker
Emoji Picker Element
A lightweight emoji picker for the modern web
Stars: ✭ 587 (-9.13%)
Mutual labels:  emoji, emoji-picker
rm-emoji-picker
A modern, ES2015 emoji picker and editor.
Stars: ✭ 76 (-88.24%)
Mutual labels:  emoji, emoji-picker
Wdt Emoji Bundle
Slack like emoji picker with apple/ios, twitter/twemoji, google, emojione, facebook, messenger emoji support
Stars: ✭ 411 (-36.38%)
Mutual labels:  emoji, emoji-picker
Rofimoji
An emoji and character picker for rofi 😁
Stars: ✭ 319 (-50.62%)
Mutual labels:  emoji, emoji-picker
mr-emoji
Lightweight emoji picker like SLACK
Stars: ✭ 23 (-96.44%)
Mutual labels:  emoji, emoji-picker
lepre
🐰 Lightweight Emoji Picker for React Enthusiast
Stars: ✭ 15 (-97.68%)
Mutual labels:  emoji, emoji-picker
discord-emoji
[Library/Deno] A near exact emoji tables of Discord for string-based insertion of emotes without having to escape Unicode.
Stars: ✭ 37 (-94.27%)
Mutual labels:  emoji, emoji-picker
Interweave
🌀 React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more.
Stars: ✭ 467 (-27.71%)
Mutual labels:  emoji, emoji-picker
Em Keyboard
the cli emoji keyboard™ [ author @kennethreitz ]
Stars: ✭ 280 (-56.66%)
Mutual labels:  emoji, emoji-picker
Emoji Mart
One component to pick them all 👊🏼
Stars: ✭ 4,687 (+625.54%)
Mutual labels:  emoji, emoji-picker
Supernova Emoji
library to implement and render emojis For Android
Stars: ✭ 334 (-48.3%)
Mutual labels:  emoji, emoji-picker
EmojiRunner
Search for emojis in Krunner and copy/paste them
Stars: ✭ 33 (-94.89%)
Mutual labels:  emoji, emoji-picker
winmoji
Emoji lookup for Windows 😉 https://www.winmoji.com https://twitter.com/winmoji
Stars: ✭ 79 (-87.77%)
Mutual labels:  emoji, emoji-picker
ermoji
🤷‍♂️ RStudio Addin to Search and Copy Emoji
Stars: ✭ 26 (-95.98%)
Mutual labels:  emoji, emoji-picker
ngx-emoj
A simple, theme-able emoji mart/picker for angular 4+
Stars: ✭ 18 (-97.21%)
Mutual labels:  emoji, emoji-picker
AllGithubEmojis
A list of all supported github emojis updated weekly. https://jzeferino.github.io/AllGithubEmojis/
Stars: ✭ 82 (-87.31%)
Mutual labels:  emoji, emoji-picker
rn-emoji-keyboard
Super performant, lightweight, fully customizable emoji picker 🚀
Stars: ✭ 228 (-64.71%)
Mutual labels:  emoji, emoji-picker
emoji picker flutter
A Flutter package that provides an Emoji picker widget with 1500+ emojis in 8 categories.
Stars: ✭ 55 (-91.49%)
Mutual labels:  emoji, emoji-picker
Alfred Emoj
Alfred 3 workflow to find relevant emoji from text
Stars: ✭ 325 (-49.69%)
Mutual labels:  emoji, emoji-picker

Emoji Button

Vanilla JavaScript emoji picker 😎

Screenshot

Screenshot

Demo and Documentation

https://emoji-button.js.org

Features

  • 💻 Vanilla JS, use with any framework
  • 😀 Use native or Twemoji emojis
  • 🔎 Emoji search
  • 👍🏼 Skin tone variations
  • ⏱ Recently used emojis
  • ⌨️ Fully keyboard accessible
  • 🎨 Dark, light, and auto themes
  • ⚙️ Add your own custom emoji images
  • 🧩 Extend functionality with plugins

Browser support

Emoji Button is supported on all modern browsers supporting the latest JavaScript features. Internet Explorer is not supported.

Installation

If you are using a package manager like yarn or npm, you can install Emoji Button directly from the npm registry:

npm install @joeattardi/emoji-button

Basic usage

First, you'll need a trigger element. This is typically a button, and is used to toggle the emoji picker.

<button id="emoji-trigger">Emoji</button>

Once you've added the trigger, you will need to import the EmojiButton class and create a new instance. Various options can be passed to the constructor, which is covered in the API documentation.

After constructing a picker, it can be shown by calling showPicker or togglePicker on it. These functions expect a reference element as a parameter. The picker is positioned relative to this reference element.

When an emoji is selected, the picker will emit an emoji event, passing an object containing data about the emoji that was selected. You can then handle the selected emoji however you want.

For more in depth documentation and examples, please visit https://emoji-button.js.org.

import { EmojiButton } from '@joeattardi/emoji-button';

const picker = new EmojiButton();
const trigger = document.querySelector('#emoji-trigger');

picker.on('emoji', selection => {
  // handle the selected emoji here
  console.log(selection.emoji);
});

trigger.addEventListener('click', () => picker.togglePicker(trigger));

Development

The easiest way to hack on Emoji Button is to use the documentation site. First, you should fork this repository.

Clone the forked repository

git clone https://github.com/your-name/emoji-button.git

From the repository root

Install dependencies

npm install

Set up the link

npm link

Start the build/watch loop

npm run build:watch

From the site subdirectory

Install dependencies

npm install

Link the library

npm link @joeattardi/emoji-button

Start the documentation site

npm run develop

Open the page

http://localhost:8000

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].