This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@picmo/renderer-twemoji
TypeScript icon, indicating that this package has built-in type declarations

5.8.5 • Public • Published

@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.

Twemoji renderer

Installation

npm install @picmo/renderer-twemoji

Basic usage

import { createPicker } from 'picmo';
import { TwemojiRenderer } from '@picmo/renderer-twemoji';

// The picker must have a root element to insert itself into
const rootElement = document.querySelector('#pickerContainer');

// Create the picker
const picker = createPicker({ 
  rootElement,
  renderer: new TwemojiRenderer()
});

// The picker emits an event when an emoji is selected. Do with it as you will!
picker.addEventListener('emoji:select', event => {
  console.log('Emoji selected:', event.emoji);
});

Package Sidebar

Install

npm i @picmo/renderer-twemoji

Homepage

picmojs.com

Weekly Downloads

1,140

Version

5.8.5

License

MIT

Unpacked Size

33.3 MB

Total Files

10

Last publish

Collaborators

  • joeattardi