@draft-js-plugins/mention
Version:
Mention Plugin for DraftJS
12 lines (11 loc) • 442 B
TypeScript
import { EditorState } from "draft-js";
import { ReactElement, ReactNode } from "react";
import { MentionPluginStore } from ".";
export interface MentionSuggestionsPortalProps {
offsetKey: string;
store: MentionPluginStore;
getEditorState(): EditorState;
setEditorState(state: EditorState): void;
children: ReactNode;
}
export default function MentionSuggestionsPortal(props: MentionSuggestionsPortalProps): ReactElement;