File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
packages/mdx/src/mdx-client Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,25 @@ import { extractPreviewSteps } from "./steps"
6
6
7
7
export function Slideshow ( {
8
8
children,
9
- editorSteps,
9
+ className,
10
+ code,
10
11
codeConfig,
12
+ editorSteps,
13
+ hasAutoFocusControls,
14
+ hasPreviewSteps,
11
15
presetConfig,
12
- code,
13
- className,
14
16
style,
15
- hasPreviewSteps,
16
17
...rest
17
18
} : {
18
19
children : React . ReactNode
19
- editorSteps : EditorStep [ ]
20
+ className ?: string
21
+ code ?: EditorProps [ "codeConfig" ]
20
22
codeConfig : EditorProps [ "codeConfig" ]
23
+ editorSteps : EditorStep [ ]
24
+ hasPreviewSteps ?: boolean
25
+ hasAutoFocusControls ?: boolean
21
26
presetConfig ?: PresetConfig
22
- code ?: EditorProps [ "codeConfig" ]
23
- className ?: string
24
27
style ?: React . CSSProperties
25
- hasPreviewSteps ?: boolean
26
28
} ) {
27
29
const { stepsChildren, previewChildren } =
28
30
extractPreviewSteps ( children , hasPreviewSteps )
@@ -98,6 +100,7 @@ export function Slideshow({
98
100
Prev
99
101
</ button >
100
102
< input
103
+ autoFocus = { hasAutoFocusControls }
101
104
type = "range"
102
105
min = { 0 }
103
106
max = { editorSteps . length - 1 }
You can’t perform that action at this time.
0 commit comments