devrnt / react-use-wizard

🧙 A React wizard (stepper) builder without the hassle, powered by hooks.

Home Page:https://devrnt.github.io/react-use-wizard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reference step by key / identifier

matreu opened this issue · comments

commented

Right now the navigation is only possibly by numbers (index of step as child). However, wouldn't it be nice to have reference each step by name. That especially makes sense if you have a dynamic rendered sequence of steps and you want to jump around conditionally.
Similar like in this library: https://www.npmjs.com/package/react-albus

Thanks for your feature request. I'm not planning to introduce this feature, it's out of scope. react-use-wizard exposes a <Wizard> component and it is up to the end-user to introduce the "step" component