Skip to content
プロジェクト

概要

Used in demos as a way to fake a Safari-esque web browser window.

仕事効率化・自動化

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

browser-window

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

Installation

Via npm or download browser-window.js directly for use in your project.

npm install @zachleat/browser-window

Changelog

  • v3.2.0 url accepts a root-relative path (url="/post1/"), shown as-is.
  • v3.1.0 adds an opt-in fill attribute so the window fills the height of a stretched flex or grid item.
  • v3.0.0 swaps to use light-dark and color-scheme for easier light/dark mode configuration! This has browser support implications!
  • 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.

関連プロジェクトを探す

読み込み中…