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