picmo
TypeScript icon, indicating that this package has built-in type declarations

5.8.1 • Public • Published

picmo

Main package for the PicMo library. You'll need this if you want an emoji picker!

Installation

npm install picmo

Basic usage

import { createPicker } from 'picmo';

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

// Create the picker
const picker = createPicker({ rootElement });

// 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);
});

/picmo/

    Install

    npm i picmo

    Homepage

    picmojs.com

    DownloadsWeekly Downloads

    18,073

    Version

    5.8.1

    License

    MIT

    Unpacked Size

    288 kB

    Total Files

    81

    Last publish

    Collaborators

    • joeattardi