wobsoriano / vuemoji-picker

Vue 2 and 3 lightweight emoji picker.

Home Page:https://vuemoji-picker.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I use without using TypeScript lang ?

adamprocter opened this issue · comments

I am using the options API syntax and .vue files in plain JavaScript not in typescript and would love to use this lightweight picker but I am unsure how to thus construct the method ? Thanks

<template>
  <div id="app">
    <VuemojiPicker @emojiClick="handleEmojiClick" />
  </div>
</template>

<script>
import { VuemojiPicker } from 'vuemoji-picker'

export default {
  components: {
    VuemojiPicker
  },
  methods: {
    handleEmojiClick(detail) { // detail contains the selected emoji }
  }
};
</script>

thank you