useMainToolbarItem
Adds a toolbar item to the main toolbar.
Syntax
useMainToolbarItem(item);
Parameters
Name | Type | Description |
---|---|---|
item | MainToolbarItem | The toolbar item to add. |
Example
useMainToolbarItem({
name: 'Fly Mode',
key: 'U',
});
Available on: Client