<Stepper
allowNavigateToPrevStep={false}
defaultIndex={0}
onChange={(data) => console.log(data.currentStepId, data.currentStepIndex)}
onComplete={() => console.log("Completed")}
>
<Stepper.List>...</Stepper.List>
<Stepper.Panel>...</Stepper.Panel>
</Stepper>
Stepper Props
In addition to the props listed below, the Stepper component can accept any valid HTML div props.Allows the user to navigate to previous steps by clicking the step.
The index of the step to display on mount (0-based). To start the Stepper
in the completed state with Stepper.FinalPanel visible and all steps
marked complete, set this to the total number of steps (e.g.
steps.length).
The data object has two values: currentStepId and currentStepIndex