Vanilla Breeze

code-playground

A live HTML, CSS, and JavaScript editor with a sandboxed preview iframe, runtime console output, CodePen export, and theme-aware styling that fits naturally inside a Vanilla Breeze page.

Where to find it

Install

Or via CDN ESM:

Demo

The editor pane chrome, tab bar, and console adopt VB design tokens. Edit the code and the preview iframe re-renders live; the console below mirrors any console.log calls.

Quick reference

FeatureAttribute / Slot
HTML / CSS / JS panes<textarea slot="html">, slot="css", slot="js"
Inherit page themeinherit-theme
Persist edits in localStoragepersist="key-name"
External sourceshtml-src, css-src, js-src attributes
Console outputBuilt-in; toggle visibility with show-console / no-console.
Open in CodePenOne-click export button.

See the README for the full reference.

Usage