vuemoji-picker
Vue 2 and 3 lightweight emoji picker.
124,448
72
| Install | |
|---|---|
npm install vuemoji-picker |
|
| Latest Version: | 0.3.2 |
| Vue: | 2 · 3 |
| License: | MIT |
| Last Updated: | Dec 5, 2024 |
| Links: | GitHub · npm |
Maintainer: wobsoriano
vuemoji-picker
A simple Vue 2 and 3 wrapper component for emoji-picker-element.

Install
npm install vuemoji-picker
Usage
<script setup lang="ts">
import { VuemojiPicker, EmojiClickEventDetail } from 'vuemoji-picker'
const handleEmojiClick = (detail: EmojiClickEventDetail) => {}
</script>
<template>
<VuemojiPicker @emojiClick="handleEmojiClick" />
</template>
Props
| Name | Type | Default | Description |
|---|---|---|---|
isDark |
Boolean |
system | Set picker theme |
customCategorySorting |
Function |
- | Function to sort custom category strings (sorted alphabetically by default) |
customEmoji |
CustomEmoji[] |
- | Array of custom emoji |
dataSource |
String |
"https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json" | URL to fetch the emoji data from |
i18n |
I18n |
- | i18n object (see details) |
locale |
String |
"en" | Locale string |
skinToneEmoji |
String |
"🖐️" | The emoji to use for the skin tone picker |
pickerStyle |
VuemojiPickerStyle |
- | style object (see available options) |
Events
| Name | Type | Default | Description |
|---|---|---|---|
emojiClick |
Function |
- | Fired when an emoji is selected |
skinToneChange |
Function |
- | Fired when a new skin tone is selected |
Composables
Set of composables that wraps Database API methods.
<script setup>
import { ref } from 'vue'
import {
useEmojiByGroup,
useEmojiBySearchQuery,
useEmojiByShortcode,
useEmojiByUnicodeOrName
} from 'vuemoji-picker'
const query = ref('elephant')
const { result, loading } = useEmojiBySearchQuery(query)
</script>
For more information about available styling and offline config, please read emoji-picker-element's docs.
License
MIT - Copyright (c) 2021 Robert Soriano
Related Packages
vue-emoji-mart
Customizable Slack-like emoji picker for Vue. Port from emoji-mart for React by...
2,225
5
Version History
| Version | Released | License |
|---|---|---|
| 0.3.2 | MIT | |
| 0.3.1 | MIT | |
| 0.3.0 | MIT | |
| 0.2.1 | MIT | |
| 0.2.0 | MIT | |
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT | |
| 0.0.7 | MIT | |
| 0.0.6 | MIT |