1.0.4 • Published 6 years ago

emoji-selector v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

emoji-selector

A HTML custom element implementing the <emoji-selector> tag.

emoji-selector in action

Setup

Installation

npm i emoji-selector

<script src="node_modules/emoji-selector/emoji-selector.bundle.js"></script>

or if you're bundling

import "emoji-selector";
// or
require("emoji-selector");

Usage

    <emoji-selector></emoji-selector>
    <script>
        let emojiSelector = document.querySelector('emoji-selector');

        // You can assign a function to "emojiSelected"
        // that will will be called every time an emoji is select
        emojiSelector.emojiSelected = (char) => {
            console.log(char);
            emojiSelector.close();
        };
    </script>
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago