返回 slidev
ui.md
根目录 / docs / guide / ui.md
1 ---
2 outline: deep
3 ---
4
5 # User Interface
6
7 ## Navigation Bar {#navigation-bar}
8
9 In Play mode, move your mouse to the bottom left corner of the page, you can see the navigation bar.
10 ![](/screenshots/navbar.png)
11
12 > You can extend the navigation bar via <LinkInline link="features/global-layers" />.
13
14 ## Navigation Actions {#navigation-actions}
15
16 | Keyboard Shortcut | Button in Navigation Bar | Description |
17 | --------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
18 | <kbd>f</kbd> | <carbon-maximize class="inline-icon-btn"/> <carbon-minimize class="inline-icon-btn"/> | Toggle fullscreen |
19 | <kbd>cmd</kbd>+<kbd>enter</kbd> / <kbd>ctrl</kbd>+<kbd>F5</kbd> | - | Toggle fullscreen (Google Slides "Present" keys, used by presentation clickers) |
20 | <kbd>right</kbd> / <kbd>space</kbd> | <carbon-arrow-right class="inline-icon-btn"/> | Next animation or slide |
21 | <kbd>left</kbd> | <carbon-arrow-left class="inline-icon-btn"/> | Previous animation or slide |
22 | <kbd>up</kbd> | - | Previous slide |
23 | <kbd>down</kbd> | - | Next slide |
24 | <kbd>o</kbd> | <carbon-apps class="inline-icon-btn"/> | Toggle [Quick Overview](#quick-overview) |
25 | <kbd>d</kbd> | <carbon-sun class="inline-icon-btn"/> <carbon-moon class="inline-icon-btn"/> | Toggle dark mode |
26 | - | <carbon-user-avatar class="inline-icon-btn"/> | Toggle [Camera View](../features/recording#camera-view) |
27 | - | <carbon-video class="inline-icon-btn"/> | Start <LinkInline link="features/recording" /> |
28 | - | <carbon-user-speaker class="inline-icon-btn"/> | Enter [Presenter Mode](#presenter-mode) |
29 | - | <carbon-text-annotation-toggle class="inline-icon-btn"/> | Toggle <LinkInline link="features/side-editor" /> |
30 | - | <carbon-document-pdf class="inline-icon-btn"/> | Enter [Browser Exporter](#exporter) |
31 | - | <carbon-download class="inline-icon-btn"/> | Download PDF. See <LinkInline link="features/build-with-pdf" /> |
32 | - | <carbon-information class="inline-icon-btn"/> | Show information about the slides |
33 | - | <carbon-settings-adjust class="inline-icon-btn"/> | More options |
34 | <kbd>g</kbd> | - | Show goto... |
35
36 > You can [configure the shortcuts](../custom/config-shortcuts).
37
38 ### Suppressing accidental advances
39
40 If your presentation remote sometimes sends two advances for one press, set `advanceDebounce` in the [headmatter](/custom/#headmatter):
41
42 ```yaml
43 ---
44 advanceDebounce: 100 # milliseconds; defaults to 0 (disabled)
45 ---
46 ```
47
48 The first advance happens immediately. Further `next()` or `nextSlide()` calls within the window are ignored, including keyboard shortcuts, navigation buttons, and custom controls using these methods. They share one window across click animations and slide changes. Ignored advances do not extend the window or run later. An advance at or after the end of the window is accepted.
49
50 Backward navigation and explicit jumps remain immediate and reset the window. Printing and exporting are unaffected. A held key still uses Slidev's normal auto-repeat; repeat actions within the configured window are ignored. Choose a window shorter than the interval between your intentional advances. Set it to `0` to restore unrestricted navigation.
51
52 ## Quick Overview {#quick-overview}
53
54 By pressing <kbd>o</kbd> or clicking the <carbon-apps class="inline-icon-btn"/> button in the navigation bar, you can have an overview of your slides so you can jump between them easily.
55
56 ![](/screenshots/slides-overview.png)
57
58 ## Presenter Mode {#presenter-mode}
59
60 To enter the presenter mode, you can click the <carbon-user-speaker class="inline-icon-btn"/> button in the navigation panel, or visit `http://localhost:<port>/presenter`.
61
62 When giving a presentation, it's recommended to open two browser windows - one in the play mode for the audience, and another one in the presenter mode for you. Then you can share the first screen to the audience and keep the second screen for yourself.
63
64 Whenever you navigate through the slides in the presenter mode, all other opened pages will automatically follow this navigation to stay in sync with the presenter.
65
66 ![](/screenshots/presenter-mode.png)
67
68 ### Presenter Layouts {#presenter-layouts}
69
70 > Available since v0.50.0
71
72 The presenter view offers three different layouts that you can cycle through by clicking the layout toggle button <carbon-template class="inline-icon-btn"/> in the navigation bar:
73
74 - **Layout 1** (default): Current slide prominently displayed at the top, with notes and next slide preview below
75 - **Layout 2**: Notes panel on the left, current slide and next slide stacked on the right
76 - **Layout 3**: Notes and current slide on the left, larger next slide preview on the right
77
78 Each layout is optimized for different screen sizes and presentation preferences.
79
80 ### Screen Mirror {#screen-mirror}
81
82 > Available since v0.50.0
83
84 In the presenter view, you can switch the main slide area to "Screen Mirror" mode. This allows you to capture and display another monitor or window directly in the presenter view.
85
86 Click the "Screen Mirror" option in the presenter view's segment control, then select the screen or window you want to mirror. This is useful when you want to see exactly what your audience sees on the projector or external display (e.g. live coding / live demo).
87
88 ## Slide Overview {#slides-overview}
89
90 > Available since v0.48.0
91
92 <video src="https://github.com/slidevjs/slidev/assets/11247099/01bbf5b3-f916-4646-9ea4-cf269c0567cb"
93 controls rounded shadow></video>
94
95 You can visit an overview of all of your slides by first opening the [Quick Overview panel](#quick-overview) and then clicking the <carbon-list-boxes class="inline-icon-btn"/> on the top right, or by visiting `http://localhost:<port>/overview` directly.
96
97 The overview page gives you a linear list of all your slides, with all of your notes on the side. You can double-click on the notes to edit the notes directly, and drag the clicks sliders to preview the steps in your slides.
98
99 ## Notes Editor {#notes-editor}
100
101 > Available since v0.52.0
102
103 Slidev provides a batch notes editor at `http://localhost:<port>/notes-edit` where you can edit notes for all slides in a single text area.
104
105 Notes for each slide are separated by `--- #[slide-number]` markers. Changes are automatically saved as you type with debouncing.
106
107 This is useful when you want to write or review all your speaker notes in one place without switching between slides.
108
109 ## Drawing UI {#drawing}
110
111 See:
112
113 <LinkCard link="features/drawing" />
114
115 ## Recording UI {#recording}
116
117 See:
118
119 <LinkCard link="features/recording"/>
120
121 ## Browser Exporter {#exporter}
122
123 See:
124
125 <LinkCard link="guide/exporting#browser"/>
126
127 ## Settings {#settings}
128
129 Click the <carbon-settings-adjust class="inline-icon-btn"/> button in the navigation bar to access additional settings.
130
131 ### CSS Filters {#css-filters}
132
133 > Available since v0.50.0
134
135 When presenting on different projectors or displays, colors may appear differently than expected. Slidev provides CSS filter controls to adjust the display in real-time:
136
137 - **Invert**: Flip all colors
138 - **Brightness**: Adjust overall brightness (0.5 - 1.5)
139 - **Contrast**: Adjust contrast levels (0.5 - 1.5)
140 - **Saturation**: Adjust color saturation (0.5 - 1.5)
141 - **Sepia**: Add sepia tone effect
142 - **Hue Rotate**: Shift all colors by degrees (-180 to 180)
143
144 These settings are stored locally and persist across sessions. A dot indicator appears on the settings button when any filter is active.
145
146 ### Hide Idle Cursor {#hide-idle-cursor}
147
148 > Available since v0.50.0
149
150 When enabled, the cursor will automatically hide after a period of inactivity during the presentation. This provides a cleaner viewing experience for your audience.
151
152 ### Slide Scale {#slide-scale}
153
154 Choose between "Fit" mode (scales slides to fit the viewport) or "1:1" mode (displays slides at their native resolution).
155
156 ### Wake Lock {#wake-lock}
157
158 When enabled, prevents the screen from dimming or locking during your presentation. Requires browser support for the Wake Lock API.
159
160 ## Global Layers {#global-layers}
161
162 You can add any custom UI below or above your slides for the whole presentation or per-slide:
163
164 <LinkCard link="features/global-layers" />
165
165 lines MARKDOWN