Structure

Pages

Get started with your extension's pages.

Extension pages are built-in pages recognized by the browser. They include the extension's popup, options, sidepanel and newtab pages.

Sometimes when you create a new browser extension page, Plasmo runtime might not be listening and might not update in certain cases. To fix this, just refresh your extension manually.

The popup page is a small dialog window that opens when a user clicks on the extension's icon in the browser toolbar. It is the most common type of extension page.

Popup window

Options

The options page is meant to be a dedicated place for the extension's settings and configuration.

Options page

Give users options

developer.chrome.com

Devtools

The devtools page is a custom page (including panels) that opens when a user opens the extension's devtools panel.

Devtools page

Extend devtools

developer.chrome.com

New tab

The new tab page is a custom page that opens when a user opens a new tab in the browser.

New tab page

Override Chrome pages

developer.chrome.com

Side panel

The side panel is a custom page that opens when a user clicks on the extension's icon in the browser toolbar.

Side panel

Side panel

developer.chrome.com

Tabs

Tab pages is a feature unique to the Plasmo framework. Unlike traditional extension pages, tab pages are just regular web pages shipped with your extension bundle. Extensions generally redirect to or open these pages programmatically, but you can link to them as well.

They could be useful for following cases:

  • when you want to show a some page when user first installs your extension
  • when you want to have dedicated pages for authentication
  • when you need more advanced routing setup

Tab page

Your tab page will be available under the /tabs path in the extension bundle. It will be accessible from the browser under the URL:

chrome-extension://<your-extension-id>/tabs/your-tab-page.html

Tab Pages

docs.plasmo.com

Last updated on

On this page

Ship your startup everywhere. In minutes.Get TurboStarter