SlashCommandMenuProps
type SlashCommandMenuProps = { className?: string; editor: EditorHandle; eventName?: string; items?: readonly SlashCommandItem[];};Defined in: react/src/extensions/slash-command.tsx:104
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
className? | string | Width of the slash menu panel. | react/src/extensions/slash-command.tsx:111 |
editor | EditorHandle | - | react/src/extensions/slash-command.tsx:105 |
eventName? | string | Event 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 |