Recent Emojis

Emoji Button will remember the most recently used emojis. This data is stored in the browser's local storage under the key emojiPicker.recent.

Recent count

By default, the 50 most recent emojis are saved. This number can be changed by specifying the recentsCount property in the picker options.

import { EmojiButton } from '@joeattardi/emoji-button';

const picker = new EmojiButton({
  recentsCount: 5
});

Hiding recents

The Recent Emojis category can be hidden if desired by setting showRecents to false in the picker options.

import { EmojiButton } from '@joeattardi/emoji-button';

const picker = new EmojiPicker({
  showRecents: false
});