Interface: DockPanelKind<T>
Defined in: packages/sdk/src/types.ts:489
Registers a kind of dock panel (a tab that can live in the center dock area, e.g. the terminal). Workspaces open panels of registered kinds by id. The optional generic T is the shape of the params this kind's panels are opened with — annotate your component with DockPanelProps<T> and ExtensionContext.registerDockPanelKind infers it, no casts needed.
Type Parameters
T
T extends object = Record<string, unknown>
Properties
id
id: string;Defined in: packages/sdk/src/types.ts:491
Unique id for this panel kind.
component
component: ComponentType<DockPanelProps<T>>;Defined in: packages/sdk/src/types.ts:493
The React component that renders this panel; receives DockPanelProps.
addMenuItem?
optional addMenuItem?: object;Defined in: packages/sdk/src/types.ts:498
When set, this kind appears as an entry in the center dock's + add menu (the per-group header button). Omit to keep the kind internal.
label
label: string;Label shown in the menu, e.g. "New Web Viewer".
icon?
optional icon?: ReactNode;Optional icon rendered to the left of the label.
params?
optional params?: Record<string, unknown>;Params forwarded to the new panel instance. Merged with a generated panel id — include title here to control the tab label.