Online Playground
26 presets cover the basics, layout and orientation, events, panel placement, plugins, and the standalone Input / Button / Select / InputNumber / Checkbox / Tooltip components. The playground runs in its own window: pick a preset, edit the HTML / CSS / JS, and check the preview on the right.
Open the Playground ↗Notes
- The playground is a standalone page that opens in a new window; this site only links to it.
- Presets load the published UMD bundle from unpkg, so no local install is required.
- The editor is provided by
ew-iframe-editorand usesew-code-editorby default. - Every preset also has a full page under the repository's
examples/directory.
Covered examples
| No. | Examples |
|---|---|
| 01 - 05 | Basics, size and orientation, predefined colors, buttons, events and callbacks |
| 06 - 10 | Panel placement, animation, disabled state, color mode, instance API |
| 11 - 15 | InputNumber, multiple instances, eyedropper, copy color, Select plugin |
| 16 - 20 | Gradient, Checkbox, panel boundary, panel mode, standalone Tooltip |
| 21 - 24 | Standalone Select / Input / Button, UMD bundle |
| 25 | Standalone Checkbox |
Powered by ew-iframe-editor
The editor on this page is built with ew-iframe-editor. It embeds an online code editor through an adapter, accepts inline code or a requestUrl, defaults to ew-code-editor, and lets you plug in your own editor.
bash
pnpm add ew-iframe-editorts
import { createEditor } from 'ew-iframe-editor'
const { iframe, destroy } = createEditor({
container: '#editor',
code: {
html: '<div id="app"></div>',
css: 'body { font-family: sans-serif; }',
js: 'console.log("hello")',
},
})