Skip to content

SlashCommandMenuProps

type SlashCommandMenuProps = {
className?: string;
editor: EditorHandle;
eventName?: string;
items?: readonly SlashCommandItem[];
};

Defined in: react/src/extensions/slash-command.tsx:104

PropertyTypeDescriptionDefined in
className?stringWidth of the slash menu panel.react/src/extensions/slash-command.tsx:111
editorEditorHandle-react/src/extensions/slash-command.tsx:105
eventName?stringEvent name to listen for. Must match the extension. Default 'showSlashCommandMenu'.react/src/extensions/slash-command.tsx:109
items?readonly SlashCommandItem[]Override or extend the default item list.react/src/extensions/slash-command.tsx:107