@@ -122,22 +122,22 @@ Per-component props override these values.
122122
123123# # 🧩 `<Editor />` props
124124
125- | Prop | Type | Default | Description |
126- | --------------- | ------------------- | ------------ | ------------------------------------------------------------------------------- |
127- | `session` | `string` | auto | Unique session identifier. Auto-generated from slide number if omitted. |
128- | `defaultFolder` | `string` | project root | Workspace folder to open. Absolute or relative to the Slidev root. |
129- | `colorScheme` | `'dark' \| 'light'` | auto | VS Code color theme. Defaults to Slidev's `colorSchema` if set, otherwise none. |
130- | `fontSize` | `number` | — | Editor font size. Useful for visibility in large rooms. |
131- | `disableInitialFocus` | `boolean` | `false` | Prevent VS Code from stealing keyboard focus on slide entry. |
132- | `hideActivityBar` | `boolean` | `false` | Hide the VS Code activity bar (left icon sidebar). |
133- | `hideMinimap` | `boolean` | `false` | Hide the editor minimap. |
134- | `hideStatusBar` | `boolean` | `false` | Hide the VS Code status bar (bottom bar). |
135- | `height` | `string` | `100%` | CSS height of the editor container. |
136- | `persist` | `boolean` | `false` | Keep the session alive when navigating away. |
137- | `preload` | `boolean` | `false` | Start the session while the slide is not yet active (requires Slidev preload). |
138- | `port` | `number` | auto | Force a specific port for this session. |
139- | `startTimeout` | `number` | `30000` | Max startup time in ms before the session is marked as failed. |
140- | `zoom` | `number` | `1` | Scale factor for the VS Code UI (e.g. `0.8` for 80%). |
125+ | Prop | Type | Default | Description |
126+ | --------------------- | ------------------- | ------------ | ------------------------------------------------------------------------------- |
127+ | `session` | `string` | auto | Unique session identifier. Auto-generated from slide number if omitted. |
128+ | `defaultFolder` | `string` | project root | Workspace folder to open. Absolute or relative to the Slidev root. |
129+ | `colorScheme` | `'dark' \| 'light'` | auto | VS Code color theme. Defaults to Slidev's `colorSchema` if set, otherwise none. |
130+ | `fontSize` | `number` | — | Editor font size. Useful for visibility in large rooms. |
131+ | `disableInitialFocus` | `boolean` | `false` | Prevent VS Code from stealing keyboard focus on slide entry. |
132+ | `hideActivityBar` | `boolean` | `false` | Hide the VS Code activity bar (left icon sidebar). |
133+ | `hideMinimap` | `boolean` | `false` | Hide the editor minimap. |
134+ | `hideStatusBar` | `boolean` | `false` | Hide the VS Code status bar (bottom bar). |
135+ | `height` | `string` | `100%` | CSS height of the editor container. |
136+ | `persist` | `boolean` | `false` | Keep the session alive when navigating away. |
137+ | `preload` | `boolean` | `false` | Start the session while the slide is not yet active (requires Slidev preload). |
138+ | `port` | `number` | auto | Force a specific port for this session. |
139+ | `startTimeout` | `number` | `30000` | Max startup time in ms before the session is marked as failed. |
140+ | `zoom` | `number` | `1` | Scale factor for the VS Code UI (e.g. `0.8` for 80%). |
141141
142142# # ⚠️ Static exports
143143
0 commit comments