1.0.1 • Published 3 years ago

vue-unicode-emoji v1.0.1

Weekly downloads
3
License
MIT
Repository
gitlab
Last release
3 years ago

Vue Unicode Emoji

Simple unicode emojis by word.

Example

Vue Component

Input:

<Emoji word="beer" />

Output:

🍺

Installation

yarn add vue-unicode-emoji

Usage

Vue Template:

<Emoji word="beer" />

Vue Script:

import Emoji from 'vue-unicode-emoji';

export default {
  components: [Emoji]
};

May also use named imports:

import { Emoji, emoji, lookup } from 'vue-unicode-emoji';

console.log(lookup['foggy']);

export default {
  components: [Emoji], // capital Emoji named export is the Vue component
  methods: {
    emoji // lowercase emoji named export is a lookup function
  }
};
<Emoji word="beer" /> is {{ emoji('thumbsup') }}

License

MIT