We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
startIndex
1 parent b8479cb commit 1967842Copy full SHA for 1967842
src/wizard.tsx
@@ -5,8 +5,8 @@ import { Handler, WizardProps } from './types';
5
import WizardContext from './wizardContext';
6
7
const Wizard: React.FC<WizardProps> = React.memo(
8
- ({ header, footer, children }) => {
9
- const [activeStep, setActiveStep] = React.useState(0);
+ ({ header, footer, children, startIndex = 0 }) => {
+ const [activeStep, setActiveStep] = React.useState(startIndex);
10
const [isLoading, setIsLoading] = React.useState(false);
11
const hasNextStep = React.useRef(true);
12
const hasPreviousStep = React.useRef(false);
0 commit comments