@mocanvas/mocanvas · interface
interface ToolbarItemThe default toolbar's contents, as data.
Kept apart from the components that render it so the tool *list* — which is
also what TLUiOverrides.tools starts from and what useTools() hands to a
custom toolbar — has no React in it.
Properties · 9
geo?: GeoShapeKindGeo kind the entry selects, for entries driving the geo tool.
icon: IconNameid: stringUnique key; also the geo kind for geo entries.
kbd?: stringKeyboard shortcut(s), comma-separated. Lower case: these are compared
against KeyboardEvent.key.
label: stringoptional?: booleanTools outside the default set: shown only when the app registers them.
readonlyOk?: booleanKeep the shortcut live on a read-only editor.
shortcut?: stringDisplayed in the tooltip, next to the label.
tool: stringTool id that must be registered for this entry to appear.
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.