Description
StepsLayout.PreviousButton
connects to the StepsContext
to move the user to the previous step when clicked.
Demo
Code Editor
<StepsContext.Providervalue={{activeIndex: 5,handlePrevious: () => console.log('handlePrevious'),handleNext: () => null,}}><StepsLayout.PreviousButton /></StepsContext.Provider>