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
What it is for
- A toolbar popup rendered by Preact
- Quick actions that read and open tabs with no permission
- Starting point for Preact extensions with a popup
First steps
- Run npm run dev to launch the extension
- Click the toolbar icon to open the action popup
- Edit src/action/ActionApp.tsx and save to see fast refresh update it
Permissions it asks for
This template requests no permissions.
Source on GitHubDocumentation
extension.devDocumentation for extension.dev