Mirroir pour tester l'usage du picker dans la v5.
Go to file
Nolan Lawson afe8b9b39b add license 2020-05-09 19:42:37 -07:00
src switch from pika to rollup 2020-05-09 19:39:47 -07:00
test tweak test 2020-05-08 15:49:05 -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
README.md start fleshing out 2020-05-08 14:59:22 -07:00
package.json switch from pika to rollup 2020-05-09 19:39:47 -07:00
rollup.config.js switch from pika to rollup 2020-05-09 19:39:47 -07:00
yarn.lock switch from pika to rollup 2020-05-09 19:39:47 -07:00

README.md

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'