Install & Download:
Description:
A Vue wrapper component for emoji-picker-element, which is a modern emoji picker web component for the web.
Compatible with both Vue 3 and Vue 2.
How to use it:
1. Import the wrapper component.
import { defineComponent, ref } from 'vue'
import { VuemojiPicker, EmojiClickEventDetail, VuemojiPickerStyle } from 'vuemoji-picker';<template> <VuemojiPicker :picker-style="style" @emojiClick="handleEmojiClick" /> </template>
2. Create an emoji picker.
<template> <VuemojiPicker :picker-style="style" @emojiClick="handleEmojiClick" /> </template>
export default defineComponent({
components: { VuemojiPicker },
setup() {
const handleEmojiClick = (detail: EmojiClickEventDetail) => {
// do something
}
const style = ref<VuemojiPickerStyle>({
borderSize: '2px',
buttonActiveBackground: '#e6e6e6'
})
return {
handleEmojiClick,
style
}
}
})3. Available props.
isDark: {
type: Boolean,
required: false,
default: isDarkMode()
},
skinToneEmoji: String,
customEmoji: Array as PropType<PickerConstructorOptions['customEmoji']>,
dataSource: String,
locale: String,
customCategorySorting: Function as PropType<(a: string, b: string) => number>,
i18n: Object as PropType<PickerConstructorOptions['i18n']>,
pickerStyle: Object as PropType<VuemojiPickerStyle>Preview:

Changelog:
v0.2.1 (02/27/2024)
- bugfixes
v0.2.0 (07/05/2022)
- feat(deps): add Database methods composables
v0.1.4 (04/03/2022)
- Bugfix
v0.1.3 (03/16/2022)
- Bugfix





