Referencing widgets in plugins

Hi all hope you are well.
I am getting into putting plugins together and I have this simple one that upon run creates a set of pages and pulls in some components from my teams library.
I am using “const firstComponentKey =” and it works great.

Wondering if I could pull in a widget automatically after plugin runs?
Thank you!

You can clone existing widgets using the plugin API, but you can’t insert brand-new widgets. Inserting widgets needs to be a user-initiated action for security reasons.

2 Likes

Thank you James_Yang that makes perfect sense.