IFrame (Content script sidebar from extension files)

This is similar to content script sidebar, with the only difference being the sidebar is injected in an iframe instead of injecting it in shadow root. The content of the content script sidebar comes locally, from the extension files.

Install

Create a new directory, cd into it and then run the below command.

npx ChromeKit-Org/cli init iframe-local

You will have 2 directories after you run the above command extension & cs-root.

cs-root directory has the react code that will be injected as content script into the web page.

Last updated