Preact Action (Popup)

Adds a toolbar popup to the browser with a simple Preact page.

Runs on Chrome, Edge, Firefox · Manifest V3 · Surfaces: popup, background service worker · Styling: CSS · Level: beginner · Framework: preact

Create this project

npx extension@latest create my-action-preact --template action-preact
cd my-action-preact
npm install
npm run dev

Files in this template

  • extension.config.js
  • src/action/ActionApp.tsx
  • src/action/index.html
  • src/action/scripts.tsx
  • src/action/styles.css
  • src/background.ts
  • src/images/icon-128.png
  • src/images/icon-16.png
  • src/images/icon-32.png
  • src/images/icon-48.png
  • src/images/icon-64.png
  • src/images/icon.png
  • src/manifest.json

extension.devDocumentation for extension.dev