serebrov / emoji-mart-vue

One component to pick them all (performance improvements) 👊🏼
https://serebrov.github.io/emoji-mart-vue/
BSD 3-Clause "New" or "Revised" License
264 stars 45 forks source link

JS fiddle? #67

Open tabrez500 opened 4 years ago

tabrez500 commented 4 years ago

Hello, I was trying to work around this vue component but just wondering , is there any JS fiddle available for this. As it is a bit confusing to read the docs. Thanks

serebrov commented 4 years ago

As far as I know, there is no js fiddle or something like that (at least, I didn't make any).

There is a demo project under the docs folder and live version here.

Also, I know that docs are quite a mess as I took the original README and extended it here and there, so it might be hard to use. If you have some specific complains or proposals for docs, please let me know, I am considering to rewrite the readme at some point.

tabrez500 commented 4 years ago

Yeah I mean I have not gone through the whole docs, but the first piece of code I came across had some confusion like:

import data from '../data/all.json'
import { Picker, EmojiIndex } from 'emoji-mart-vue-fast'
let emojiIndex = new EmojiIndex(data)

First-line seems to be directed to local files meanwhile the next line is pointing to the npm package. So I thought it would be better to add a fiddle link.