8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3dc0d4 commit 94b9930Copy full SHA for 94b9930
README.md
@@ -107,3 +107,28 @@ productionMode.value = true
107
<Repl :store="store" :editor="Monaco" :showCompileOutput="true" />
108
</template>
109
```
110
+
111
+Use only the Preview without the editor
112
113
+```vue
114
+<script setup>
115
+import { ref } from 'vue'
116
+import { Sandbox, useStore } from '@vue/repl'
117
118
+// retrieve some configuration options from the URL
119
+const query = new URLSearchParams(location.search)
120
121
+const store = useStore(
122
+ {
123
+ // custom vue version
124
+ vueVersion: ref(query.get('vue')),
125
+ },
126
+ // initialize repl with previously serialized state
127
+ location.hash,
128
+)
129
+</script>
130
131
+<template>
132
+ <Sandbox :store="store" />
133
+</template>
134
+```
0 commit comments