Narcissistic Project Managers

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

    5.7.3 • 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);
    });

    Install

    npm i @picmo/renderer-twemoji

    Homepage

    picmojs.com

    DownloadsWeekly Downloads

    769

    Version

    5.7.3

    License

    MIT

    Unpacked Size

    16.1 MB

    Total Files

    8

    Last publish

    Collaborators

    • joeattardi