Skip to content

NextButton

Description

StepsLayout.NextButton connects to the StepsContext to move the user to the next step when clicked.

Demo

<StepsContext.Provider
value={{
activeIndex: 0,
handlePrevious: () => null,
handleNext: () => console.log('handleNext'),
}}
>
<StepsLayout.NextButton />
</StepsContext.Provider>