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

FR: functionality to get total steps

flyfishMT opened this issue · comments

Is there a way to get the number of steps? Something like this? Thanks

const Header = () => {
   const { activeStep, numberSteps } = useWizard();
   return (
     <h1>Step {activeStep + 1} of {numberSteps}</h1>
  );
};

Is there a way to get the number of steps?

Not at the moment. But hopefully soon.

Hi, thanks for creating this issue (and already submitting a PR @ulken).

See PR for follow-up

@devrnt Sure thing. Maybe you typed ahead, cause I can't see any comments on the PR, yet?