Interface: UseBubbleMenuResult
Returned by useBubbleMenu().
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
open | readonly | boolean | The bubble should be shown. |
reference | readonly | VirtualReference | Where the selection is; give it to your positioning code (e.g. Floating UI). |
Methods
dismiss()
ts
dismiss(): void;Hide until the selection changes; focus goes back to the editor.
Returns
void
focusFirst()
ts
focusFirst(): void;Move focus to the first control in the bubble (what the focus shortcut does).
Returns
void
getBubbleProps()
ts
getBubbleProps(): ReactProps;Props for the bubble element: id and data-state (open or closed). Escape dismisses it, and mousedown outside form fields is prevented to keep the selection.