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({
1313 editorSteps,
1414 hasPreviewSteps,
1515 // Set the initial slide index
16- initialSlideIndex = 0 ,
16+ start = 0 ,
1717 // Called when the slideshow state changes and returns the current state object
1818 onChange : onSlideshowChange = ( ) => { } ,
1919 presetConfig,
@@ -26,7 +26,7 @@ export function Slideshow({
2626 codeConfig : EditorProps [ "codeConfig" ]
2727 editorSteps : EditorStep [ ]
2828 hasPreviewSteps ?: boolean
29- initialSlideIndex ?: number
29+ start ?: number
3030 onChange ?: Function
3131 presetConfig ?: PresetConfig
3232 style ?: React . CSSProperties
@@ -41,8 +41,8 @@ export function Slideshow({
4141
4242 const maxSteps = editorSteps . length - 1 ;
4343
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 ) ;
4646
4747 // Make sure the initial slide is not configured out of bounds
4848 const initialSlide = initialSlideValue > maxSteps ? maxSteps : initialSlideValue
You can’t perform that action at this time.
0 commit comments