**For example** ```html <template> <Monaco :value="value" /> </template> <script setup> import Monaco from '@vue/repl/monaco-editor' const value = `<template>xxx</template>` </script> ``` **Or hide the preview** ```html <template> <Repl :editor="Monaco" :show-preview="false" /> </template> <script setup> import { Repl } from '@vue/repl' import Monaco from '@vue/repl/monaco-editor' </script> ```
Activity
wangcch commentedon Feb 24, 2025
Only the editor is displayed.
Do you want to implement a custom layout? 🤔
huodoushigemi commentedon Feb 25, 2025
I wanted to support Vue syntax in monaco editor, so I found this project
2091124175 commentedon Apr 9, 2025
我想问下 能不能只用这个预览器 预览这个模板代码 模板代码是接口回来的
wangcch commentedon Apr 9, 2025
@2091124175 可以的,你可以直接使用
Sandboxhttps://stackblitz.com/edit/vitejs-vite-socxduic?file=src%2FApp.vue
just-a-demo commentedon Jan 27, 2026
Hello, have you found a solution yet