---
title: "A dropdown menu for mentioning users"
description: "Mention other users with a dropdown menu UI component in your Tiptap editor. More in our documentation!"
---

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

# A dropdown menu for mentioning users

Mention other users with a dropdown menu UI component in your Tiptap editor. More in our documentation!

> **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 mention-dropdown-menu
```

## Usage

```tsx
import { MentionDropdownMenu } from '@/components/tiptap-ui/mention-dropdown-menu'
import { useEditor, EditorContent } from '@tiptap/react'
import { Mention } from '@tiptap/extension-mention'

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

  return (
    <div>
      <EditorContent editor={editor} />
      <MentionDropdownMenu 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-mention-dropdown-menu' | Selector for the target    |
| char            | string         | '@'                            | Mention character          |

## Requirements

Used reference components

- `tiptap-utils` (lib)
- `suggestion-menu` (ui)
- `avatar` (primitive)
- `button` (primitive)
