emoji-mart-picker

0.2.3 • Public • Published

emoji-mart-picker NPM version Build Status Dependency Status

emoji picker based on emoji-mart (https://github.com/missive/emoji-mart/)

Installation

$ npm install --save emoji-mart-picker

Usage

Put the React component that you want to trigger the picker to open in EmojiMartPicker's children. EmojiMartPicker will automatically open when children is onClick.

var emojiMartPicker = require('emoji-mart-picker');
 
function onChange(emoji) {
  console.log(emoji);
}
 
ReactDOM.render(
  <EmojiMartPicker onChange={onChange}>
    <button>click me</button>
  </EmojiMartPicker>
, document.getElementById('root'));

Start example server

npm start

License

MIT © Canner

Readme

Keywords

Package Sidebar

Install

npm i emoji-mart-picker

Weekly Downloads

711

Version

0.2.3

License

MIT

Unpacked Size

17.7 kB

Total Files

7

Last publish

Collaborators

  • abz53378
  • chilijung