Skip to content

Function: createMenu() ​

ts
function createMenu(editor, options): Menu;

Behaviour and accessibility for a menu button (WAI-ARIA menu button pattern): either one checked choice (menuitemradio, items with isActive), such as the block type picker, or a list of actions (menuitem), such as table commands. Renders nothing — spread the props on your own elements.

Parameters ​

ParameterType
editorEditor
optionsMenuOptions

Returns ​

Menu