Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I use a function work nextstep, instead of press button? #89

Open
darryl-tan opened this issue Jun 17, 2021 · 3 comments
Open

Comments

@darryl-tan
Copy link

how can I use a function work nextstep, instead of press button?
I don't want press Next button,
TKS

@Naandalist
Copy link

Did u find the way to use function to work to next step, instead of press button?

@haseeb-numu
Copy link

haseeb-numu commented Jul 9, 2021

here's a solution might be not that good. also check out isComplete prop

const Example = ()=>{
  const [step,setStep] = useState(0);
  const handleStep = ()=>{
    /// your logic where you can set Step page
    setStep(2);
  }

  return(<ProgressSteps activeStep={step}>
    <ProgressStep removeBtnRow>
      step 1 
    </ProgressStep>
    <ProgressStep removeBtnRow>
      step 2 
    </ProgressStep>
  </ProgressSteps>)

}

@darryl-tan
Copy link
Author

darryl-tan commented Jul 11, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants