File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/mdx/src/mdx-client Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export function Slideshow({
13
13
editorSteps,
14
14
hasPreviewSteps,
15
15
// Set the initial slide index
16
- initialSlideIndex = 0 ,
16
+ start = 0 ,
17
17
// Called when the slideshow state changes and returns the current state object
18
18
onChange : onSlideshowChange = ( ) => { } ,
19
19
presetConfig,
@@ -26,7 +26,7 @@ export function Slideshow({
26
26
codeConfig : EditorProps [ "codeConfig" ]
27
27
editorSteps : EditorStep [ ]
28
28
hasPreviewSteps ?: boolean
29
- initialSlideIndex ?: number
29
+ start ?: number
30
30
onChange ?: Function
31
31
presetConfig ?: PresetConfig
32
32
style ?: React . CSSProperties
@@ -41,8 +41,8 @@ export function Slideshow({
41
41
42
42
const maxSteps = editorSteps . length - 1 ;
43
43
44
- // This hook will prevent the slide from being changed via the initialSlideIndex prop after render
45
- const initialSlideValue = useInitialState ( initialSlideIndex ) ;
44
+ // This hook will prevent the slide from being changed via the start prop after render
45
+ const initialSlideValue = useInitialState ( start ) ;
46
46
47
47
// Make sure the initial slide is not configured out of bounds
48
48
const initialSlide = initialSlideValue > maxSteps ? maxSteps : initialSlideValue
You can’t perform that action at this time.
0 commit comments