---
title: "Add an emoji dropdown menu"
description: "Add a dropdown menu that inserts emoji characters into the Tiptap editor. More in the docs!"
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/ui-components/components/emoji-dropdown-menu.md)

# Add an emoji dropdown menu

Add a dropdown menu that inserts emoji characters into the Tiptap editor. More in the docs!

> **Upgrade to v3**
>
> To use UI components or templates you need to upgrade to Editor version 3.x. See the [upgrade
> guide](https://tiptap.dev/docs/resources/whats-new) for more details.

## Install

```bash
npx @tiptap/cli add emoji-dropdown-menu
```

## Usage

```tsx
import { EmojiDropdownMenu } from '@/components/tiptap-ui/emoji-dropdown-menu'
import { useEditor, EditorContent } from '@tiptap/react'
import { Emoji } from '@tiptap/extension-emoji'

export default function MyEditor() {
  const editor = useEditor({
    extensions: [
      // other extensions
      Emoji.configure({
        // emoji configuration
      }),
    ],
  })

  return (
    <div>
      <EditorContent editor={editor} />
      <EmojiDropdownMenu editor={editor} />
    </div>
  )
}
```

## Props

| Name            | Type           | Default                      | Description                |
| --------------- | -------------- | ---------------------------- | -------------------------- |
| editor          | Editor \| null | null                         | The Tiptap editor instance |
| floatingOptions | object         | -                            | Options for floating UI    |
| selector        | string         | 'tiptap-emoji-dropdown-menu' | Selector for the target    |
| char            | string         | ':'                          | Emoji character            |

## Requirements

Used reference components

- `suggestion-menu` (ui)
- `emoji-menu` (ui)

Open source feature(s)

- `@tiptap/react`
- `@tiptap/extension-emoji`
