View as Markdown

API reference: @salmonui/rich-text

BlockEditorMentionsinterface

import type { BlockEditorMentions } from '@salmonui/rich-text';
interface BlockEditorMentions<T = MentionItem> {
    readonly trigger?: string;
    readonly items: MentionData<T>;
}

Mentions through the contenteditable Mention target.

BlockEditorMentions members (2)
NameSignatureDescription
triggeroptionalreadonly trigger?: string;

Trigger (default '@').

itemsreadonly items: MentionData<T>;