Docs
Mention

Mention

Enable autocompletion for user mentions.

@ Mention

Mention and reference other users or entities within your text using @-mentions.
Try mentioning
BB-8
or
Boba Fett
.

Features

  • Provides smart autocompletion for mentioning users or applying tags.
  • Invoke combobox with @ or # and select suggestion.

Installation

npm install @udecode/plate-mention

Usage

import { createMentionPlugin } from '@udecode/plate-mention';
 
const plugins = [
  // ...otherPlugins,
  createMentionPlugin(),
];

API

createMentionPlugin

Extends TriggerComboboxPlugin

Options

Collapse all

    A function to create the mention node.

    Whether to insert a space after the mention.

getMentionOnSelectItem

Gets the handler for selecting an item in the mention combobox.

Parameters

Collapse all

Returns

Collapse all

    The handler for selecting an item in the mention combobox.