I’d go with a custom renderer as well. You can copy the existing stepper renderer and add the buttons, e.g. as it is the case in the React Stepper component - Material-UI example. @eneufeld We could probably provide a 2nd UI option called showNavButtons or similar that would display the back/next buttons somewhere (not sure if I like it though).
Hi, i have been trying to implement my own custom renderer to implement the Next and previous buttons i previously described but im struggling to understand how to do this.
I have seen the MaterialCategorizationStepperLayoutRenderer and can see the activeCategory state, which i know i can simple increment / decrement when next / previous button is pressed but im just a little confused on how to get access to that state and where to pass my own handleNext and handlePrevious functions.
I have created my own Control component and corresponding tester, here should i be importing the MaterialCategorizationStepperLayoutRenderer and passing in my own handleNext and handlePrev functions?
The most pragmatic solution is to just copy and adapt the code in the way you want. The renderer only has about 40 lines of code, so this is perfectly fine. If you prefer to reuse the renderer feel free to open a PR which adds customization capabilities (or extracts a common reusable component) and we’ll definitely take a look.