Skip to content

Function: useBubbleMenu() ​

ts
function useBubbleMenu(editor, options?): UseBubbleMenuResult;

A toolbar that appears next to selected text: shown for text selections in a focused editor, reached with Alt-F10, left with Escape. Positioning is yours: place the element at reference. Options are read once.

Parameters ​

ParameterType
editorEditor
options?BubbleMenuOptions

Returns ​

UseBubbleMenuResult