0.2.2 • Published 11 months ago

native-emoji v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Native Emoji Picker

Modified version of Meteor-Emoji-Picker

This emoji picker is pure, vanilla JavaScript, so should be compatible with most JS projects. Uses the native system/browser's emojis without adding extra images

Demo: https://native-emoji-picker.netlify.com

native-emoji

How do I use it?

This plugin can be installed from CDN:

<script src="https://cdn.jsdelivr.net/npm/native-emoji/dist/nativeEmoji.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/native-emoji/dist/nativeEmoji.min.css" rel="stylesheet">

or via NPM:

npm i native-emoji

Include the nativeEmoji.min.js and nativeEmoji.min.css files from the 'dist' folder in your project, and then use:

new nativeEmoji();

Now you can add emoji pickers to your input fields! For a full width emoji picker, simply add the attribute data-native-emoji-large="true" to your field. This will create an always open, full width emoji picker below the desired input box.

If you want the classic "press a button to open" style picker, just use data-native-emoji="true" on an input field.

<textarea data-native-emoji="true"></textarea>