Skip to content

Commit 9d0d275

Browse files
committed
Rename prop for consistency with CH.Spotlight
1 parent b5a312d commit 9d0d275

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/mdx/src/mdx-client/slideshow.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)