Description
StepsLayout.PreviousButton
connects to the StepsContext
to move the user to the previous step when clicked.
Demo
<StepsContext.Providervalue={{activeIndex: 5,handlePrevious: () => console.log('handlePrevious'),handleNext: () => null,}}><StepsLayout.PreviousButton /></StepsContext.Provider>
Properties
Property | Type | Description |
---|---|---|
children | React.Node | (required) Button text. |
data-testid | string | (required) Test ID. |