emoji-mart-picker
v0.2.3
Published
emoji picker based on emoji-mart
Downloads
3,067
Readme
emoji-mart-picker
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