Add playground example loader

This commit is contained in:
2026-06-25 03:39:40 +09:00
parent f928028007
commit c26f9ca50a
4 changed files with 238 additions and 22 deletions
@@ -9,6 +9,11 @@ import ManualLayout from '../layouts/ManualLayout.astro';
<p>Virtual files are evaluated in the browser through WebAssembly. Use import paths such as <code>./schemas/service.dcdl</code>.</p>
</div>
<div class="playground-actions">
<label class="example-picker">
<span>Example</span>
<select id="example-select" aria-label="Playground example"></select>
</label>
<button id="load-example" type="button">Load</button>
<p id="status" class="status">Loading WASM...</p>
<button id="run" disabled>Run</button>
</div>