Skip to content

registerComponentDecorator

registerComponentDecorator<P>(componentName, plugin): void

Decorate a named slot — add UI before/after/around it or transform its props.

Slots are mount points the SDK exposes for plugins to inject custom UI without forking the editor. Common slots include 'OptionalAppBarControls', 'OptionalNodeContent', and others — see the Build a plugin guide for the authoritative list.

Safe to call more than once; pass plugin.name to deduplicate.

P

string

Slot identifier (e.g. 'OptionalAppBarControls').

ComponentDecoratorOptions<P>

Decorator configuration. See ComponentDecoratorOptions.

void

registerComponentDecorator('OptionalAppBarControls', {
content: MyButton,
place: 'after',
name: 'analytics-button',
});