Live Demo Examples
This is a internal reference doc
This page now uses a custom VitePress component instead of Sandpack.
Hello Preset
Console
No logs yet.
Counter Preset
Console
No logs yet.
Use It In Any Doc Page
md
<LiveCodeDemo preset="hello" :previewHeight="240" />md
<LiveCodeDemo preset="counter" :readOnly="true" :showHtml="false" :showCss="true" :showJs="true" />md
<LiveCodeDemo
preset="counter"
:showConsole="true"
:showHighlight="true"
/>md
<LiveCodeDemo
preset="utilitiesClass"
deps="@briklab/lib:3.0.0"
:showHtml="false"
/>Notes:
presetsupportshelloandcounter.- You can edit HTML/CSS/JS in place and preview updates immediately.
readOnlylocks editor input.showHtml,showCss,showJscontrol which tabs are visible.showConsoletoggles runtime logs/errors panel.showHighlighttoggles syntax-highlighted view for the active tab.depslets JSimportnpm packages viaesm.sh.