Understand the emoji rendering model
masterNative Emoji
By default, emoji-picker-element renders native emoji. It does not download large sprite sheets or fonts, which avoids IP issues and ensures emojis look consistent with the user's operating system. It is limited to the emoji font installed on the user's device.
Automatic Support Detection
The picker automatically detects emoji support. It will only render characters that the browser/OS can display to avoid showing empty boxes or broken characters. If no color emoji are supported, an error message is displayed.
IndexedDB Usage
To avoid keeping large JSON files (which can be ~850kB) in memory, the picker uses IndexedDB. This allows:
- Avoiding constant re-parsing of JSON on every load.
- Keeping the main thread free by allowing data to be loaded in a web worker if desired.