1.0.8 • Published 5 years ago

vue-emoji-mart-picker v1.0.8

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
5 years ago

vue-emoji-mart-picker

npm npm

Vue Emoji Mart Picker is a simple WYSIWYG editor component with emoji picker for VueJS that based on jm-david/emoji-mart-vue

View Demo

Installation

npm install --save vue-emoji-mart-picker

Usage

import PickerArea from 'vue-emoji-mart-picker'
<picker-area v-model="myValue" set="messenger" />
<picker-area v-model="myOtherValue" :inline="true" />
<picker-area title="Pick your emoji…" emoji="point_up" />
<picker-area :i18n="{ search: 'Recherche', categories: { search: 'Résultats de recherche', recent: 'Récents' } }" />
PropRequiredDefaultDescription
inlinefalseDisplay editor as single line input
pickerPositionbottomThe position of the emoji picker
placeholder""The placeholder of the editor
emojipoint_upThe emoji shown when no emojis are hovered, set to an empty string to show nothing
include[]Only load included categories. Accepts I18n categories keys. Order will be respected, except for the recent category which will always be the first.
exclude[]Don't load excluded categories. Accepts I18n categories keys.
emojiSize24The emoji width and height
perLine9Number of emojis per line. While there’s no minimum or maximum, this will affect the picker’s width. This will set Frequently Used length as well (perLine * 4)
i18n{…}An object containing localized strings
setappleThe emoji set: 'apple', 'google', 'twitter', 'emojione', 'messenger', 'facebook'
sheetSize64The emoji sheet size: 16, 20, 32, 64
backgroundImageFn((set, sheetSize) => …)A Fn that returns that image sheet to use for emojis. Useful for avoiding a request if you have the sheet locally.
showPreviewtrueDisplay preview section
showCategoriestrueDisplay categories
showSkinTonestrueDisplay skin tones picker
emojiTooltipfalseShow emojis short name when hovering (title)
titlePick your emoji...The title shown when no emojis are hovered
infiniteScrolltrueScroll continuously through the categories

I18n

search: 'Search',
notfound: 'No Emoji Found',
categories: {
  search: 'Search Results',
  recent: 'Frequently Used',
  people: 'Smileys & People',
  nature: 'Animals & Nature',
  foods: 'Food & Drink',
  activity: 'Activity',
  places: 'Travel & Places',
  objects: 'Objects',
  symbols: 'Symbols',
  flags: 'Flags',
  custom: 'Custom',
}

Sheet sizes

Sheets are served from jsdelivr.

SetSize (sheetSize: 16)Size (sheetSize: 20)Size (sheetSize: 32)Size (sheetSize: 64)
apple334 KB459 KB1.08 MB2.94 MB
emojione315 KB435 KB1020 KB2.33 MB
facebook322 KB439 KB1020 KB2.50 MB
google301 KB409 KB907 KB2.17 MB
messenger325 KB449 KB1.05 MB2.69 MB
twitter288 KB389 KB839 KB1.82 MB

Development

npm install
npm run dev

🎩 Hat tips

Powered by iamcal/emoji-data and inspired by iamcal/js-emoji.\ 🙌🏼 Cal Henderson.

1.0.8

5 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.3

6 years ago