Content Preact
Shows an overlay UI on web pages and an options page that moves it from right to left.
Runs on Chrome, Edge, Firefox · Manifest V3 · Surfaces: content script, options page, background service worker · Styling: CSS · Framework: preact
Create this project
npx extension@latest create my-content-preact --template content-preact
cd my-content-preact
npm install
npm run dev
Files in this template
- extension.config.js
- src/background.ts
- src/content/ContentApp.tsx
- src/content/scripts.tsx
- src/content/styles.css
- src/images/chromeWindow.png
- src/images/icon.png
- src/images/preact.png
- src/images/tailwind.png
- src/images/tailwind_bg.png
- src/images/typescript.png
- src/manifest.json
- src/options/OptionsApp.tsx
- src/options/index.html
- src/options/scripts.tsx
- src/options/styles.css
Source on GitHubDocumentation
extension.devDocumentation for extension.dev