Skip to content

csamu/emoji-mart-picker

 
 

Repository files navigation

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

Packages

No packages published

Languages

  • JavaScript 100.0%