Skip to content

plugin-api/GlobalComponentRegistry#

useGlobalComponents()#

function useGlobalComponents(): GlobalComponentDef[];

React hook that returns all registered global components, re-rendering on changes.

Returns#

GlobalComponentDef[]


globalComponentRegistry#

const globalComponentRegistry: GlobalComponentRegistry;

GlobalComponentDef#

Properties#

component#

component: ComponentType;

id#

id: string;

isVisible?#

optional isVisible?: () => boolean;

Optional predicate that determines whether this component should be mounted.

Returns#

boolean

order#

order: number;