@picmo/renderer-twemoji
Adds support to PicMo for rendering emojis from Twemoji instead of native platform emojis.
Requires the base PicMo package to be installed as a peer dependency.
Installation
npm install @picmo/renderer-twemoji
Basic usage
import { createPicker } from 'picmo';
import { TwemojiRenderer } from '@picmo/renderer-twemoji';
const rootElement = document.querySelector('#pickerContainer');
const picker = createPicker({
rootElement,
renderer: new TwemojiRenderer()
});
picker.addEventListener('emoji:select', event => {
console.log('Emoji selected:', event.emoji);
});