A small themed zero-dependency Web Component for demos with a fake browser window (Safari-esque).
“this is maybe my favoritest [web component] yet.”—Dave Rupert, President of Web Components
Via npm or download browser-window.js directly for use in your project.
npm install @zachleat/browser-windowv3.0.0swaps to uselight-darkandcolor-schemefor easier light/dark mode configuration! This has browser support implications!v2.0.0URL bar now shows the full url by default (including pathname, searchParams, et al). Useurl-mode="hostname-only"to swap back to previous behavior.