Skip to content
On this page

ToolbarItem (Interface)

The ToolbarItem interface describes an item in the SDK's toolbar, such as a button or toggle.

Fields

FieldTypeDescription
idstringUnique identifier for the toolbar item.
labelstring?Optional label for the item.
iconstring?Optional icon for the item.
disabledboolean?Whether the item is disabled.
toggledboolean?Whether the item is toggled on/off.
onClick() => void?Optional click handler for the item.

Usage

Used to define and manage items in the SDK's toolbar.