Welcome to Vanilla Breeze
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
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.
@profpowell/code-playgroundnpm install @profpowell/code-playground
import '@profpowell/code-playground';
Or via CDN ESM:
<script type="module" src="https://unpkg.com/@profpowell/code-playground"></script>
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.
| Feature | Attribute / Slot |
|---|---|
| HTML / CSS / JS panes | <textarea slot="html">, slot="css", slot="js" |
| Inherit page theme | inherit-theme |
| Persist edits in localStorage | persist="key-name" |
| External sources | html-src, css-src, js-src attributes |
| Console output | Built-in; toggle visibility with show-console / no-console. |
| Open in CodePen | One-click export button. |
See the README for the full reference.
<code-playground inherit-theme persist="intro-demo"> <textarea slot="html"> <h1>Hello</h1> <p>Edit me.</p> </textarea> <textarea slot="css"> h1 { color: tomato; } </textarea> <textarea slot="js"> console.log('ready'); </textarea></code-playground>