All Projects → tommoor → Emojione Picker

tommoor / Emojione Picker

Licence: mit
A react emoji picker for use with emojione

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Emojione Picker

Alfred Emoj
Alfred 3 workflow to find relevant emoji from text
Stars: ✭ 325 (+28.46%)
Mutual labels:  emoji-picker
Emoji Button
Vanilla JavaScript emoji picker component
Stars: ✭ 646 (+155.34%)
Mutual labels:  emoji-picker
Rails emoji picker
Add emoji to your app 😺
Stars: ✭ 141 (-44.27%)
Mutual labels:  emoji-picker
Wdt Emoji Bundle
Slack like emoji picker with apple/ios, twitter/twemoji, google, emojione, facebook, messenger emoji support
Stars: ✭ 411 (+62.45%)
Mutual labels:  emoji-picker
Emoji Picker Element
A lightweight emoji picker for the modern web
Stars: ✭ 587 (+132.02%)
Mutual labels:  emoji-picker
Awesome Emoji Picker
Add-on/WebExtension that provides a modern emoji picker that you can use to find and copy/insert emoji into the active web page.
Stars: ✭ 54 (-78.66%)
Mutual labels:  emoji-picker
Em Keyboard
the cli emoji keyboard™ [ author @kennethreitz ]
Stars: ✭ 280 (+10.67%)
Mutual labels:  emoji-picker
Emoji Picker React
React Emoji Picker
Stars: ✭ 221 (-12.65%)
Mutual labels:  emoji-picker
Uni
Query the Unicode database from the commandline, with good support for emojis
Stars: ✭ 633 (+150.2%)
Mutual labels:  emoji-picker
Emojipanel
😀 A customisable Javascript emoji picker
Stars: ✭ 129 (-49.01%)
Mutual labels:  emoji-picker
Emoji Mart
One component to pick them all 👊🏼
Stars: ✭ 4,687 (+1752.57%)
Mutual labels:  emoji-picker
Android Rich Text Editor
Android Rich Text Editor With customized spans - 富文本编辑器 - Don't miss this one :)
Stars: ✭ 587 (+132.02%)
Mutual labels:  emoji-picker
Emoji Mart Native
One component to pick them all 👊🏼
Stars: ✭ 61 (-75.89%)
Mutual labels:  emoji-picker
Supernova Emoji
library to implement and render emojis For Android
Stars: ✭ 334 (+32.02%)
Mutual labels:  emoji-picker
Vue Twemoji Picker
Vue Twemoji Picker - A fast plug-n-play Twemoji Picker (+textarea for Twemoji rendering) for Vue. Support Unicode Emoji 13.0.
Stars: ✭ 154 (-39.13%)
Mutual labels:  emoji-picker
Rofimoji
An emoji and character picker for rofi 😁
Stars: ✭ 319 (+26.09%)
Mutual labels:  emoji-picker
Vanilla Emoji Picker
Modern emoji picker. Super light 2kb gzipped, simple and no frameworks 😻
Stars: ✭ 20 (-92.09%)
Mutual labels:  emoji-picker
Emoji Keyboard
Type emoji easily! Virtual keyboard-like emoji palette for Linux with lots of features.
Stars: ✭ 231 (-8.7%)
Mutual labels:  emoji-picker
Vue Emoji Picker
Very simple, yet powerful, vue emoji picker 🎉🔥🚀
Stars: ✭ 218 (-13.83%)
Mutual labels:  emoji-picker
Jquery Emoji
😄 Let textarea or editable div has ability to insert emoji. 让文本框或div具备插入表情功能。
Stars: ✭ 125 (-50.59%)
Mutual labels:  emoji-picker

npm version CircleCI

Emoji Picker

A friendly Emoji picker for Emojione written as a React component. It looks a little something like this, but is easily customized:

Emoji Picker

Installation

Install with your favorite package manager:

npm i emojione-picker --save
yarn add emojione-picker

Webpack

The emoji strategy is read from a json file, as such you'll need to make sure that the json-loader is included in your loaders configuration, something like:

loaders: [
    {
        test: /\.json$/,
        loader: "json-loader"
    }
]

Usage

The module includes a transpiled version of the picker so you don't need to run it through a JSX pipeline. Simply require the module like any other.

var EmojiPicker = require('emojione-picker');

<EmojiPicker onChange={function(data){
  console.log("Emoji chosen", data);
}} />

The module also includes CSS at css/picker.css which you can copy and edit or ideally reference directly from within the node_modules directory. Let me know if you're using this in production - i'd love to see it in action!

Filtering

You can manually pass in a search term as a component prop to filter which emoji's are displayed by default, for example:

<EmojiPicker search="smile" />

Or allow the user to search by passing a boolean true, this will enable a search input within the picker:

<EmojiPicker search={true} />
Emoji Picker with Search

Customize Categories

You can easily customize the category icons by passing in alternatives to the component constructor. The emoji strings come from the shortname value in strategy.js.

var categories = {
  people: {
    title: 'People',
    emoji: 'smile'
  },
  nature: {
    title: 'Nature',
    emoji: 'mouse'
  },
  food: {
    title: 'Food & Drink',
    emoji: 'burger'
  }
}

<EmojiPicker categories={categories} />

Spritesheets

You can make the picker use a spritesheet, however this requires a little extra work. Emojione settings can be passed into the Picker component as below. Follow these instructions to load the correct spritesheets into your page.

var settings = {
  imageType: 'png',
  sprites: true
};
<EmojiPicker categories={categories} emojione={settings} />

Content Security Policy

The picker uses react-virtualized, which creates an inlined style. Give the picker a nonce and set Content-Security-Policy field in HTTP header accordingly if your CSP requires this.

<EmojiPicker nonce={NONCE_GENERATED_WHEN_TRANSMITTING} />
Content-Security-Policy: style-src: 'self' 'nonce-NONCE_GENERATED_WHEN_TRANSMITTING'

Development

yarn install
yarn start

Open http://localhost:8080/examples in a browser to see a preview of the picker.

License

MIT License

Emojione is used under the Creative Commons License (CC-BY 4.0) - If you use this component you should also include attribute to Emojione somewhere within your website or application to satisfy the terms of the license.

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].