v-emoji-picker
This simple package using Emojis Natives
371,363
363
| Install | |
|---|---|
npm install v-emoji-picker |
|
| Latest Version: | 2.3.3 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Dec 10, 2022 |
| Links: | GitHub · npm |
Maintainer: joaoeudes7
V-Emoji-Picker
This simple package using Emojis Natives
Contents
- V-Emoji-Picker
- Contents
- Installation
- Usage
- Props
- Events
- Using custom Emojis
- Using custom Categories
- Using SVG
- Structure Emoji
- Size
- License
Installation
yarn add v-emoji-picker
Usage
<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");
Props
{
@Prop({ default: () => [] }) customEmojis!: IEmoji[];
@Prop({ default: () => [] }) customCategories!: ICategory[];
@Prop({ default: 15 }) limitFrequently!: number;
@Prop({ default: 5 }) emojisByRow!: number;
@Prop({ default: false }) continuousList!: boolean;
@Prop({ default: 32 }) emojiSize!: number;
@Prop({ default: true }) emojiWithBorder!: boolean;
@Prop({ default: true }) showSearch!: boolean;
@Prop({ default: true }) showCategories!: boolean;
@Prop({ default: false }) dark!: boolean;
@Prop({ default: "Peoples" }) initialCategory!: string;
@Prop({ default: () => [] as ICategory[] }) exceptCategories!: ICategory[];
@Prop({ default: () => [] as Emoji[] }) exceptEmojis!: IEmoji[];
@Prop({}) i18n!: Object;
}
Events
{
select: 'Emit event on Selected Emoji',
changeCategory: 'Emit event on Change Category'
}
Using custom Emojis
Array of items with Interface IEmoji
interface IEmoji {
data: string;
category: string;
aliases: string[];
}
set in Prop customEmojis
Using custom Categories
Array of items with Interface ICategory
interface ICategory {
name: string;
icon: string;
}
set in Prop customCategories
Using SVG
Doc coming soon...
i18n
Set in Prop i18n a object with structure of you custom translation:
<VEmojiPicker :i18n="i18n" />
const i18n = {
search: 'Pesquisar...',
categories: {
Activity: "Atividades",
Flags: "Bandeiras",
Foods: "Comida",
Frequently: "Frequentes",
Objects: "Objetos",
Nature: "Natureza",
Peoples: "Pessoas",
Symbols: "Símbolos",
Places: "Locais"
}
}
or import from locale/lang/${youLang}
Obs: Default language is en-UK
Structure Emoji

Size

License
Related Packages
@imndx/v-emoji-picker-vue3
Base on joaoeudes7's V-Emoji-Picker , add sticker support,增加动态表情支持。
3,357
1
@imndx/v-emoji-picker
Base on joaoeudes7's V-Emoji-Picker , add sticker support,增加动态表情支持。 Th...
673
1
Version History
| Version | Released | License |
|---|---|---|
| 2.3.3 | MIT | |
| 2.3.1 | MIT | |
| 2.3.0 | MIT | |
| 2.2.1 | MIT | |
| 2.2.0 | MIT | |
| 2.1.9 | MIT | |
| 2.1.8 | MIT | |
| 2.1.7 | MIT | |
| 2.1.6 | MIT | |
| 2.1.5 | MIT | |
| 2.1.4 | MIT | |
| 2.1.3 | MIT | |
| 2.1.2 | MIT | |
| 2.1.1 | MIT | |
| 2.1.0 | MIT | |
| 2.0.8 | MIT | |
| 2.0.7 | MIT | |
| 2.0.6 | MIT | |
| 2.0.5 | MIT | |
| 2.0.4 | MIT | |
| 2.0.3 | MIT | |
| 2.0.2 | MIT | |
| 2.0.1 | MIT | |
| 1.2.7 | MIT | |
| 1.2.6 | MIT | |
| 1.2.5 | MIT | |
| 1.2.4 | MIT | |
| 1.2.3 | MIT | |
| 1.2.2 | MIT | |
| 1.2.1 | MIT |
Showing the latest 30 of 50. See every release on npm
Pre-releases (46)
| Version | Released | License |
|---|---|---|
| 2.2.0-alpha.2 | MIT | |
| 2.2.0-alpha.1 | MIT | |
| 2.1.9-alpha.7 | MIT | |
| 2.1.9-alpha.6 | MIT | |
| 2.1.9-alpha.5 | MIT | |
| 2.1.9-alpha.4 | MIT | |
| 2.1.9-alpha.2 | MIT | |
| 2.1.9-alpha.1 | MIT | |
| 2.1.4-beta.9 | MIT | |
| 2.1.4-beta.8 | MIT | |
| 2.1.4-beta.7 | MIT | |
| 2.1.4-beta.6 | MIT | |
| 2.1.4-beta.5 | MIT | |
| 2.1.4-beta.4 | MIT | |
| 2.1.4-beta.3 | MIT | |
| 2.1.4-beta.2 | MIT | |
| 2.1.4-beta.1 | MIT | |
| 2.1.4-beta.0 | MIT | |
| 2.1.2-beta.11 | MIT | |
| 2.1.2-beta.10 | MIT | |
| 2.1.2-beta.9 | MIT | |
| 2.1.2-beta.8 | MIT | |
| 2.1.2-beta.7 | MIT | |
| 2.1.2-beta.6 | MIT | |
| 2.1.2-beta.5 | MIT | |
| 2.1.2-beta.4 | MIT | |
| 2.1.2-beta.3 | MIT | |
| 2.1.2-beta.2 | MIT | |
| 2.1.2-beta.1 | MIT | |
| 2.1.2-beta.0 | MIT |
Showing the latest 30 of 46. See every release on npm
