Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

emoji-pane

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-pane

An emoji keyboard for React

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Emoji pane

Dependencies Build Status

An emoji keyboard for React

For an example of the emoji pane in action, go to http://eliasmei.re/emoji-pane/.

emoji-pane demo

Getting started

Installing

npm install emoji-pane

Import component

import EmojiPane from 'emoji-pane';

Import CSS (optional)

If you use Webpack with css loader:

import 'emoji-pane/dist/css/emojiPane.css';

Otherwise import it in your HTML head section.

Example usage

In your react component:

<EmojiPane
    filter="leaf"
    onSelected={logEmoji}
    recents={recents}
    recentsSize={12}
    skinTone={4}
/>

API

EmojiPane

Props

filter {String}

An initial search filter for the emojis.

onSelected([emoji]) {Function}

  • emoji {Object}

This callback gets called when the user selects an emoji.

recents {Array}

An array of emoji objects that were used recently.

recentsSize {Number}

Maximum amount of emojis in the recent section.

skinTone {Number}

A number representing the preferred skin tone.

  • 0: Neutral skin tone
  • 1: Light skin tone (🏻)
  • 2: Medium-light skin tone (🏼)
  • 3: Medium skin tone (🏽)
  • 4: Medium-dark skin tone (🏾)
  • 5: Dark skin tone (🏿)

Development

Clone this repository.

npm install

npm run storybook

Keywords

emoji

FAQs

Package last updated on 09 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts