---
title: "Emoji Picker"
description: "Search, browse, and pick an emoji. It has skin tones, a preview of the emoji under the pointer, 28 languages, and loading, empty, and error states."
url: https://gelatinui.com/components/emoji-picker
markdown_url: https://gelatinui.com/components/emoji-picker.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/emoji-picker"
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Emoji Picker

> Search, browse, and pick an emoji. It has skin tones, a preview of the emoji under the pointer, 28 languages, and loading, empty, and error states.

Page: https://gelatinui.com/components/emoji-picker

## When to use it

Best for: Picking one emoji from the full set, with search, skin tones, and a preview.

- Use it when people pick one emoji from the full set, with search and skin tones.
- Put it in a Popover with `variant="plain"`: the Popover is then the surface.
- Set `locale` to show the names and the search in one of 28 languages.

## When not to use it

- For a short fixed set of reactions, use a row of Toggle buttons.

## Notes for agents

- `onEmojiSelect` gets an `Emoji` object: `emoji` is the character and `label` is its name.
- It is a Pro item, built on frimousse: install it from the Pro registry.

## Anatomy

```text
EmojiPicker
├─ EmojiPickerSearch (0..n)
├─ EmojiPickerSkinToneSelector (0..n)
├─ EmojiPickerSkinTones (0..n)
├─ EmojiPickerViewport (0..n)
├─ EmojiPickerCategoryHeader (0..n)
├─ EmojiPickerRow (0..n)
├─ EmojiPickerEmoji (0..n)
├─ EmojiPickerList (0..n)
├─ EmojiPickerLoading (0..n)
├─ EmojiPickerEmpty (0..n)
├─ EmojiPickerError (0..n)
├─ EmojiPickerContent (0..n)
├─ EmojiPickerFooter (0..n)
└─ EmojiPickerPreview (0..n)
```

## API reference

### EmojiPicker

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `onEmojiSelect` | `function` |  | A callback invoked when an emoji is selected. |
| `locale` | `Locale` | "en" | The locale of the emoji picker. Custom locales can be used with `resolveEmojiData`. |
| `resolveEmojiData` | `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. |
| `skinTone` | `SkinTone` | "none" | The skin tone of the emoji picker. |
| `columns` | `number` | 10 | The number of columns in the list. |
| `emojiVersion` | `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. |
| `emojibaseUrl` | `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" |  |
| `onLoadError` | `function` |  | 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` | `Partial<typeof EMOJI_PICKER_LABELS>` |  | Words for some or all texts of the parts (`EMOJI_PICKER_LABELS`). Keep the object stable. |

### EmojiPickerSearch

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | Other content at the end of the row, after the field: an `EmojiPickerSkinToneSelector`. |
| `rowProps` | `ComponentProps<"div">` |  | Props of the row around the field. A `className` here adds to the row classes. |

### EmojiPickerSkinToneSelector

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `emoji` | `string` | "✋" | The emoji to use as visual for the skin tone variations. |

### EmojiPickerSkinTones

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `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. |

Also takes every prop of Base UI `ToggleGroup`: https://base-ui.com/react/components/toggle-group

### EmojiPickerViewport

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `frameProps` | `ComponentProps<"div">` |  | Props of the frame around the scroll box. A `className` here adds to the frame classes. |

### EmojiPickerCategoryHeader

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `category` | `{ label: string; }` |  | The category for this sticky header. |

### EmojiPickerRow

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### EmojiPickerEmoji

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `emoji` | `object` |  | The emoji for this button, its label, and whether the emoji is currently active (either hovered or selected via keyboard navigation). |

### EmojiPickerList

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `components` | `Partial<EmojiPickerListComponents>` |  | The inner components of the list. |

### EmojiPickerLoading

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### EmojiPickerEmpty

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `function \| ReactNode` |  | 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` | `string \| function` | emptyDescription | The second line, or a function of the search. Translate it with the page. |

### EmojiPickerError

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `function` |  | Replaces the default content: gets the error and `retry`. |

### EmojiPickerContent

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `frameProps` | `DetailedHTMLProps` |  | Props of the frame around the scroll box. A `className` here adds to the frame classes. |

### EmojiPickerFooter

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### EmojiPickerPreview

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `placeholder` | `ReactNode` | "Pick an emoji" | The text while no emoji is active. Translate it with the page. |

### EmojiPickerActiveEmoji

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `function` |  | A render callback which receives the currently active emoji (either hovered or selected via keyboard navigation). |

### EmojiPickerSkinTone

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `emoji` | `string` | "✋" | The emoji to use as visual for the skin tone variations. |
| `children` | `function` |  | A render callback which receives the current skin tone and a function to change it, as well as the skin tone variations of the specified emoji. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| EmojiPicker | `emoji-picker` |  | `--emoji-picker-cell`, `--emoji-picker-columns`, `--spacing` |  |
| EmojiPickerSearch | `emoji-picker-search` |  |  |  |
| EmojiPickerSkinToneSelector | `emoji-picker-skin-tone-selector` | `data-disabled` | `--frimousse-emoji-font` | `hit-area` |
| EmojiPickerSkinTones | `emoji-picker-skin-tones` | `data-disabled`, `data-pressed` | `--frimousse-emoji-font` | `hit-area` |
| EmojiPickerViewport | `emoji-picker-viewport` | `data-stage-focused` |  |  |
| EmojiPickerCategoryHeader | `emoji-picker-category-header` |  |  |  |
| EmojiPickerRow | `emoji-picker-row` |  |  |  |
| EmojiPickerEmoji | `emoji-picker-emoji` | `data-active`, `data-disabled` | `--emoji-picker-cell` |  |
| EmojiPickerList | `emoji-picker-list` |  | `--emoji-picker-cell`, `--emoji-picker-columns`, `--frimousse-list-columns`, `--spacing` |  |
| EmojiPickerLoading | `emoji-picker-loading` |  | `--emoji-picker-cell` |  |
| EmojiPickerEmpty | `emoji-picker-empty` |  |  |  |
| EmojiPickerError | `emoji-picker-error` |  | `--frimousse-viewport-height` |  |
| EmojiPickerContent | `emoji-picker-content` |  |  |  |
| EmojiPickerFooter | `emoji-picker-footer` |  |  |  |
| EmojiPickerPreview | `emoji-picker-preview` |  | `--frimousse-emoji-font` |  |

## Usage

`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.

```tsx title="reaction-picker.tsx"
import {
  EmojiPicker, EmojiPickerContent, EmojiPickerFooter, EmojiPickerPreview,
  EmojiPickerSearch, EmojiPickerSkinToneSelector,
} from "@/components/ui/pro/emoji-picker";

export function ReactionPicker({ onReact }: { onReact: (emoji: string) => void }) {
  return (
    <EmojiPicker locale="en" columns={8} skinTone="none" onEmojiSelect={({ emoji }) => onReact(emoji)}>
      <EmojiPickerSearch>
        <EmojiPickerSkinToneSelector />
      </EmojiPickerSearch>
      <EmojiPickerContent />
      <EmojiPickerFooter>
        <EmojiPickerPreview />
      </EmojiPickerFooter>
    </EmojiPicker>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/emoji-picker
```

It adds 28 registry items: 25 files, 3873 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@phosphor-icons/react`, `clsx`, `frimousse`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Button](https://gelatinui.com/components/button.md)
- [Skeleton](https://gelatinui.com/components/skeleton.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Popover](https://gelatinui.com/components/popover.md)
- [Button](https://gelatinui.com/components/button.md)
- [Tooltip](https://gelatinui.com/components/tooltip.md)

## Keyboard

| Keys | Action |
| --- | --- |
| 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 |

## Accessibility

The grid comes from frimousse: each emoji is a button with `role="gridcell"` and a name. The arrow keys move the active emoji while focus stays in the search field, and a live region reads the active emoji. The picker adds 1 to `aria-colindex`, so columns count from 1. In a right-to-left picker, Left and Right swap.

The search field is named "Search emoji". The scroll box is a `group` named "Emoji". Translate both with `aria-label`.

frimousse names the skin tone button "Change skin tone (<next tone>)" and reads the new tone aloud. `EmojiPickerSkinTones` is a Base UI `ToggleGroup` named "Skin tone", and each button has a tone name. The 24px tone buttons have a 44px target on touch (`hit-area`), and the emoji cells grow to 44px on touch.

A load error has `role="alert"`. Retry moves focus to the search field, because the button goes away.
