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.
Type Parameters
Section titled “Type Parameters”P
Parameters
Section titled “Parameters”componentName
Section titled “componentName”string
Slot identifier (e.g. 'OptionalAppBarControls').
plugin
Section titled “plugin”Decorator configuration. See ComponentDecoratorOptions.
Returns
Section titled “Returns”void
Example
Section titled “Example”registerComponentDecorator('OptionalAppBarControls', { content: MyButton, place: 'after', name: 'analytics-button',});