Calm motion: animations on this site only fade, with no movement
EmojiPicker
Search and pick an emoji
A panel of emoji for a message, a reaction, or a status. Put it in a popover next to a text field, or show it inline. For reactions on a chat message, the bubble already has reaction chips.
Basic
Recent
Smileys
People
Animals and nature
Food and drink
Activities
Travel and places
Objects
Symbols
- It ships 353 common emoji with their English names, in eight groups. Flags are left out, because many systems draw them as two letters. To offer other emoji, or names in another language, pass
emojis: a list of{ char, name, group, keywords }. The built-in list is exported asblessEmojis, so you can extend it. - The search matches names and keywords. Enter in the search box picks the first result, and ↓ moves into the grid.
- The grid is one Tab stop. The arrow keys move by row and column, also from one group into the next. Home and End go to the first and last emoji. The group bar is one Tab stop too. Its buttons jump to a group.
- Each emoji is a button named by its name. The line under the grid shows the name of the emoji that has focus, because a tooltip does not show on focus.
selectsends the emoji.v-model:recentholds the recent emoji, newest first, up torecentLimit(default 16,0hides the row).persistkeeps them inlocalStorageunder a key that you choose.columnssets the emoji per row (default 8). Set--bless-emoji-heightfor the height of the grid (default 260px).- Change the words with
labelsor a label pack. The Indonesian pack changes the words, not the emoji names.
Usage
ts
import { BlessEmojiPicker } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
emojis | BlessEmoji[] | — | the set to offer; the default is the built-in one |
columns | number | 8 | emoji per row |
recentLimit | number | 16 | how many recent emoji to keep; 0 hides the row |
persist | string | — | keep the recent emoji in localStorage under this key (read after mount) |
labels | Partial<{ search: string; groups: string; recent: string; results: string; empty: string; } & Record<BlessEmojiGroup, string>> | — | |
recent | string[] | [] | the chars of the recent emoji, newest first |
Events
| Name | Payload | Description |
|---|---|---|
select | [emoji: BlessEmoji] | |
update:recent | [value: string[]] |