Skip to content
On this page

@bridge/sidebar

Module that allows extensions to create sidebar tabs.

Functions

create

create(config): SidebarElement

Creates a new sidebar and adds it to the current workspace.

example

const { create } = await require('@bridge/sidebar')
const { MyComponent } = await require('@bridge/ui')

create({
	   id: 'myExtension',
	   displayName: 'Click Me',
	   icon: 'mdi-apple',
	   component: MyComponent
})

Parameters

NameType
configISidebarConfig

Returns

SidebarElement

Released under the GPL-3.0 License.