addComponentInstance

addComponentInstance

addComponentInstance

Add a component instance by module URL.

Parameters

  • url: string - The component module URL. Can be copied from the components panel.

  • attributes?: Partial<EditableComponentInstanceNodeAttributes>- optional component attributes

Returns

  • Promise<ComponentInstanceNode> - A promise that resolves to the newly created component instance node