Used in demos as a way to fake a Safari-esque web browser window.
npm install @zachleat/browser-windowbrowser-windowA small themed zero-dependency Web Component for demos with a fake browser window (Safari-esque).
* Go to the Demo
* Read the blog post
> “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.
``sh`
npm install @zachleat/browser-window
- v2.0.0 URL bar now shows the full url by default (including pathname, searchParams, et al). Use url-mode="hostname-only"` to swap back to previous behavior.