ToolbarItem
Anything an environment can put in its toolbar: a button, a toggle, a separator or a label. The host draws them.
@internote/canvas-sdkimport { ToolbarItem } from '@internote/canvas-sdk';#Signature
ToolbarButtonItem | ToolbarToggleItem | ToolbarSeparatorItem | ToolbarLabelItem#Example
toolbar: (ctx) => [
{ type: 'button', id: 'reset', icon: 'Refresh', label: 'Reset', onPress: () => reset(ctx) },
{ type: 'separator', id: 'after-reset' },
{ type: 'toggle', id: 'grid', label: 'Grid', active: showsGrid(ctx), onToggle: () => toggleGrid(ctx) },
],Declared in packages/canvas-sdk/src/toolbar/types.ts:126.