onEmojiSelect gets an Emoji object: emoji is the character and label is its name. In a Popover, set variant="plain", so the Popover is the only surface.
reaction-picker.tsx
EmojiPicker
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| on | — | A callback invoked when an emoji is selected. | |
| locale | "bn""da""de""en""en-gb""es""es-mx""et""fi""fr""hi""hu""it""ja""ko""lt""ms""nb""nl""pl""pt""ru""sv""th""uk""vi""zh""zh-hant"string | "en" | The locale of the emoji picker. Custom locales can be used with resolveEmojiData. |
| resolve | EmojiDataResolver | defaultEmojiDataResolver | Returns emoji data for the current locale, synchronously or asynchronously. Custom data is used as-is, without version or country-flag filtering. Delegate to defaultEmojiDataResolver to use Emojibase data. Runs on mount and when locale, emojiVersion, or emojibaseUrl changes. Changing the function alone doesn't reload data. |
| skin | "dark""light""medium""medium-dark""medium-light""none" | "none" | The skin tone of the emoji picker. |
| columns | number | 10 | The number of columns in the list. |
| emoji | number | The most recent version supported by the current browser | Which Emoji version (https://emojipedia.org/emoji-versions) to use, to manually control which emojis are visible regardless of the current browser's supported Emoji versions. |
| emojibase | string | "https://cdn.jsdelivr.net/npm/emojibase-data" | The base URL of where the Emojibase data (https://emojibase.dev/docs/datasets/) should be fetched from, used as follows: ${emojibaseUrl}/${locale}/${file}.json. (e.g. ${emojibaseUrl}/en/data.json). The URL can be set to another CDN hosting the emojibase-data (https://www.npmjs.com/package/emojibase-data) package and its raw JSON files, or to a self-hosted location. When self-hosting with a single locale (e.g. en), only that locale's directory needs to be hosted instead of the entire package. |
| sticky | boolean | true | Whether the category headers should be sticky. |
| variant | "default""plain" | "default" | |
| on | — | Called when the emoji data fails to load (a network error, a failed custom resolver). The picker shows EmojiPickerError with Retry; use this to report the error. | |
| labels | — | Words for some or all texts of the parts (EMOJI_PICKER_LABELS). Keep the object stable. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerSearch
<div>EmojiPickerSkinToneSelector
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| emoji | string | "✋" | The emoji to use as visual for the skin tone variations. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerSkinTones
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| emoji | string | "✋" | The emoji that shows each tone. |
| labels | Partial<Record<SkinTone, string>> | — | The names of the tones, for screen readers. Translate them with the page. |
From Base UIToggleGroupBase UI docs | |||
| disabled | boolean | false | Whether the toggle group should ignore user interaction. |
| orientation | "horizontal""vertical" | 'horizontal' | |
| loop | boolean | true | Whether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerViewport
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| frame | — | Props of the frame around the scroll box. A className here adds to the frame classes. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerCategoryHeader
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| category | { label: string; } | — | The category for this sticky header. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerRow
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerEmoji
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| emoji | — | The emoji for this button, its label, and whether the emoji is currently active (either hovered or selected via keyboard navigation). | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerList
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| components | Partial<EmojiPickerListComponents> | — | The inner components of the list. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerLoading
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerEmpty
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | — | The content to render when no emoji is found for the current search, or a render callback which receives the current search value. | |
| message | string | "No emoji found" | The first line. Translate it with the page. |
| description | emptyDescription | The second line, or a function of the search. Translate it with the page. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerError
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | — | Replaces the default content: gets the error and retry. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerContent
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| frame | — | Props of the frame around the scroll box. A className here adds to the frame classes. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerFooter
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerPreview
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| placeholder | ReactNode | "Pick an emoji" | The text while no emoji is active. Translate it with the page. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EmojiPickerActiveEmoji
| Prop | Type | Default | Description |
|---|---|---|---|
| children | — | A render callback which receives the currently active emoji (either hovered or selected via keyboard navigation). | |
EmojiPickerSkinTone
| Arrow keys | Move between the emoji in the grid |
|---|---|
| Enter | Pick the active emoji |
| Tab | Move between the search, the skin tone button, and the grid |
Built with
Installs with Emoji Picker









