# V-Emoji-Picker
**Repository Path**: mini-docker/V-Emoji-Picker
## Basic Information
- **Project Name**: V-Emoji-Picker
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2020-09-04
- **Last Updated**: 2022-11-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# V-Emoji-Picker
This simple package using Emojis Natives
[](https://www.npmjs.com/package/v-emoji-picker)
[](https://bundlephobia.com/result?p=v-emoji-picker@latest)
[](https://www.npmjs.com/package/v-emoji-picker)
[](https://vuejs.org/)
[](https://www.codefactor.io/repository/github/joaoeudes7/v-emoji-picker)

---
## Contents
 - [V-Emoji-Picker](#v-emoji-picker)
 - [Contents](#contents)
 - [Installation](#installation)
 - [Usage](#usage)
 - [Props](#props)
 - [Events](#events)
 - [Using custom Emojis](#using-custom-emojis)
 - [Using custom Categories](#using-custom-categories)
 - [Using SVG](#using-svg)
 - [Updates version 2](#updates-version-2)
 - [Migrate to version 2](#migrate-to-version-2)
 - [Structure Emoji](#structure-emoji)
 - [Size](#size)
 - [License](#license)
----
# Installation
```bash
yarn add v-emoji-picker
```
# Usage
```vue
  
    
  
```
or Global
```js
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
```ts
{
  @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
```js
{
  select: 'Emit event on Selected Emoji',
  changeCategory: 'Emit event on Change Category'
}
```
# Using custom Emojis
Array of items with `Interface IEmoji`
```js
interface IEmoji {
  data: string;
  category: string;
  aliases: string[];
}
```
set in Prop `customEmojis`
# Using custom Categories
Array of items with `Interface ICategory`
```js
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:
```html
  
```
```js
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
# Updates version 2
- Prop `customEmojis`
- Prop `customCategories`
- Prop `exceptCategories`
- Folder /data removed
- Interface Emoji updated
- Support to Emojis SVG/Img/Natives (text)
# Migrate to version 2
This was a one-time change to keep it clear and dynamic.
- Prop `pack` removed (async auto import default emojis natives - text)
- Prop `showCategory` changed to `showCategories`
- Event content `event.emoji` changed to `event.data`
# Structure Emoji

# Size

## License
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjoaoeudes7%2FV-Emoji-Picker?ref=badge_large)