<browser-window>
A Safari-style browser window web component for demos and tutorials
Features
Source Viewing
Toggle between rendered content and syntax-highlighted source code with one click.
CodePen Export
Export any demo directly to CodePen with HTML, CSS, and JS properly separated.
Dark Mode
Automatic theme detection with manual override. Follows system preferences.
Resizable
Drag to resize the window. Perfect for demonstrating responsive designs.
Fullscreen Mode
Double-click the header or click the green button to maximize.
Fully Themeable
15+ CSS custom properties for complete visual customization.
Quick Start
Installation
Install via npm:
Or include via CDN:
Basic Usage
Related Components
Part of the ProfPowell vanilla web components suite: