Ability to set nextButtonText and backButtonText to components
Hi
Would like to do something like:
<StepZilla
steps={steps}
nextTextOnFinalActionStep={"FooBar"}
nextButtonText={<Fragment>Next <i className="icon--arrow-right"></i></Fragment>}
backButtonText={<Fragment><i className="icon--arrow-left"></i> Back</Fragment>}
/>
Although this works, it gives a PropTypes warning (nextButtonText / backButtonText must be string) Could you make the validation so that it also accepts a react component?
Good to know it works, let me do some tests and update the core to also support a React component.
created pr for same.
Is there any update on this feature request? The PR is still open and I still get warnings setting backButtonText and nextButtonText to components instead of text. I also opened #72 on this issue also and @zeel mentioned that there might be a backButtonNode and nextButtonNode option? Thanks! I use this library in multiple projects.