@mocanvas/mocanvas · function
declare function useMenuIsOpen(id: string): [boolean, (open: boolean) => void]Whether a menu is open, tracked on the editor's instance state.
Menu open-ness lives on the editor rather than in component state because the *canvas* needs to know: a canvas that keeps interpreting pointer moves while a menu is over it fights the menu.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.