Swap components with a plugin

I’m building a plugin to swap themes for different brand styles so this involves changing colors, fonts and images. The fonts and colors are working well, but I’m stuck on how to swap components. I can find the name of the logo component in the local library that matches the theme, but I don’t see on the api site or in any of the github repos examples of how to swap.

In more detail I have a menu component which has a child logo component. The logo component is named “logo / A”. I’d like to swap with another logo component in the library “logo / B”. In the UI this is easy using the component management view to swap, but nothing in devtools or debug mode is showing me what ids are used to actually update the reference.

1 Like