HiDeoo / intro.js-react

Intro.js react wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to change current step

VishnuJangid8955 opened this issue · comments

Is your feature request related to a problem?

If the developer wants to change the current step from 2 to 5 then. They are not able to change that.

Describe the solution you'd like

We can give a setCurrentStep feature so the user can change the current step. the

Describe alternatives you've considered

No response

Additional Context

No response

Thanks for your report.

The Intro.js API provides a goToStep() function for such use cases. When using this wrapper, you can still access the Intro.js instance by using a ref on either the <Steps /> or <Hints /> components as documented here.

I'm getting an error when I'm using ref. Please check @HiDeoo

But as of now, I'm using goToStep through introJs.

Screenshot 2024-03-29 at 10 22 19 PM