Mirroir pour tester l'usage du picker dans la v5.
Go to file
2020-05-16 20:36:21 -07:00
bin more progress 2020-05-16 20:36:21 -07:00
src more progress 2020-05-16 20:36:21 -07:00
test figure out caching logic 2020-05-16 17:20:00 -07:00
.gitignore switch from pika to rollup 2020-05-09 19:39:47 -07:00
LICENSE add license 2020-05-09 19:42:37 -07:00
package.json more progress 2020-05-16 20:36:21 -07:00
README.md start fleshing out 2020-05-08 14:59:22 -07:00
rollup.config.js more progress 2020-05-16 20:36:21 -07:00
yarn.lock more progress 2020-05-16 20:36:21 -07:00

lite-emoji-picker

A small, performant, accessible emoji picker and lookup library, distributed as a web component.

Built on top of IndexedDB so it consumes far less memory then other emoji pickers. Suitable for mobile web apps or other resource-constrained environments.

Why

The emojibase-data "compact" English JSON file is 543KB. That's a lot of data to keep in memory just to work with emoji. (And it's not as if the Unicode Consortium is going to stop adding emoji anytime soon.)

Using IndexedDB has a few advantages:

  1. We don't need to keep half a megabyte of emoji data in memory at all times.
  2. The second time your visitors visit your website, we don't even need to download, parse, and index the emoji data, because it's already available on their hard drive.

Install

npm install lite-emoji-picker
import { Picker } from 'lite-emoji-picker'