This simple package using Emojis Natives
yarn add v-emoji-picker<template>
<div id="app">
<VEmojiPicker @select="selectEmoji" />
</div>
</template>
<script>
import VEmojiPicker from 'v-emoji-picker';
export default {
name: 'Demo',
components: {
VEmojiPicker
},
data: () => ({}),
methods: {
selectEmoji(emoji) {
console.log(emoji)
}
}
}
</script>or Global
import Vue from "vue";
import App from "./App.vue";
import VEmojiPicker from 'v-emoji-picker';
Vue.config.productionTip = false;
Vue.use(VEmojiPicker);
new Vue({
render: h => h(App)
}).$mount("#app");{
@Prop({ default: () => [] as IEmoji[] }) customEmojis!: IEmoji[];
@Prop({ default: () => [] as ICategory[] }) customCategories!: ICategory[];
@Prop({ default: 5 }) emojisByRow!: number;
@Prop({ default: false }) continuousList!: boolean;
@Prop({ default: true }) showSearch!: boolean;
@Prop({ default: true }) showCategories!: boolean;
@Prop({ default: "Pesquisar..." }) labelSearch!: string;
@Prop({ default: "Peoples" }) initalCategory!: string;
@Prop({ default: () => [] as string[] }) exceptCategories!: string[];
}{
select: 'Emit event on Selected Emoji',
changeCategory: 'Emit event on Change Category'
}Array of items with Interface IEmoji
interface IEmoji {
data: string;
category: string;
aliases: string[];
}set in Prop customEmojis
Array of items with Interface ICategory
interface ICategory {
name: string;
icon: string;
}set in Prop customCategories
Doc coming soon...
- Prop
customEmojis - Prop
customCategories - Prop
exceptCategories - Folder /data removed
- Interface Emoji updated
- Support to Emojis SVG/Img/Natives (text)
This was a one-time change to keep it clear and dynamic.
- Prop
packremoved (async auto import default emojis natives - text) - Prop
showCategorychanged toshowCategories - Event content
event.emojichanged toevent.data


