Vanilla Breeze

browser-window

A Safari-style browser window for demos and tutorials. Source code viewing, full-screen expand mode, CodePen export, automatic theme detection. Already a VB dependency, used to wrap every doc-page demo in this site (including this one).

Where to find it

Install

Already in Vanilla Breeze: imported by src/doc-extras.js, so any VB-built page can use <browser-window> directly.

Demo

The window chrome (frame, address bar, traffic-light buttons) reads VB color tokens and re-skins automatically when the theme changes. Inside the frame, drop any URL or any HTML you want to showcase.

Quick reference

FeatureAttribute / mechanism
Embed a URLsrc="..." renders an iframe.
Address-bar URL displayurl="my-component" shows in the URL slot.
Source viewerClick the </> button to view escaped HTML source.
Full-screen expandPop-out button toggles full-screen mode.
CodePen exportSend the embedded source to CodePen with one click.
Light / darkAuto-detected from page theme.

See the README for the full reference.

Usage