@mocanvas/editor · function

useTools

declare function useTools(): TLUiToolsContextType

The UI tool list after overrides. Keyed by item id; an id that is not registered is undefined, which is the normal state on a trimmed or read-only editor — render nothing for it rather than inventing an item.

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.