Insert CSUI when Extension Icon is clicked

I am looking for a way to insert the CSUI only when the action button is clicked. Is there a way to accomplish this? I am using Svelte components. Any help would be greatly appreciated 🙏
Was this page helpful?