native-emoji

0.2.2 • Public • Published

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>

Package Sidebar

Install

npm i native-emoji

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

113 kB

Total Files

12

Last publish

Collaborators

  • dshemendiuk