You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both absolute and relative paths are supported. Relative paths are resolved from the Slidev project root:
44
49
45
-
```md
50
+
```vue
46
51
<Editor session="demo" defaultFolder=".." />
47
52
```
48
53
49
54
## 🌗 Color scheme
50
55
51
56
Force VS Code to use a specific color theme:
52
57
53
-
```md
58
+
```vue
54
59
<Editor session="demo" colorScheme="dark" />
55
60
<Editor session="demo" colorScheme="light" />
56
61
```
@@ -61,7 +66,7 @@ If omitted, the color scheme automatically follows your Slidev presentation's `c
61
66
62
67
VS Code can appear too large inside a slide. Use the `zoom` prop to scale it down:
63
68
64
-
```md
69
+
```vue
65
70
<Editor session="demo" :zoom="0.8" />
66
71
```
67
72
@@ -76,7 +81,7 @@ livecode:
76
81
77
82
Use `disableInitialFocus` to prevent VS Code from stealing keyboard focus when you navigate to a slide — arrow keys keep working for Slidev navigation:
78
83
79
-
```md
84
+
```vue
80
85
<Editor session="demo" disableInitialFocus />
81
86
```
82
87
@@ -86,7 +91,7 @@ Focus is held on the slide for 5 seconds after VS Code loads, then released norm
86
91
87
92
Use `preload` to warm up the VS Code session before the user reaches the slide. Slidev mounts adjacent slides in the background, so the session can start while the user is still on the previous slide:
88
93
89
-
```md
94
+
```vue
90
95
<Editor session="demo" preload />
91
96
```
92
97
@@ -96,7 +101,7 @@ Combine with `disableInitialFocus` for a seamless experience — the IDE is read
96
101
97
102
By default, navigating away from a slide stops the session. Use `persist` to keep it running:
98
103
99
-
```md
104
+
```vue
100
105
<Editor session="demo" persist />
101
106
```
102
107
@@ -143,12 +148,19 @@ Per-component props override these values.
143
148
144
149
The `<Editor />` component requires Slidev dev mode. In static exports (`slidev build`), it renders a placeholder instead. Plan your demos accordingly.
145
150
146
-
## Requirements
151
+
## 🏷️ Requirements
147
152
148
153
- `@slidev/client >= 52`
149
154
- `coderaft >= 0.0.25`
150
155
- `vue >= 3.4`
151
156
157
+
## Maintainer
158
+
159
+
Made by [Mickaël Alves](https://mickaelalvs.dev) — [mickaelalvs.dev](https://mickaelalvs.dev)
0 commit comments