jeanverster / chakra-ui-steps

Steps component designed to work seamlessly with Chakra UI
https://chakra-ui-steps.vercel.app
390 stars 44 forks source link

feat(hooks): add goto hook #16

Closed mattf96s closed 3 years ago

mattf96s commented 3 years ago

Hey Jean

I was wondering if you would be willing to add a way to programmatically move between steps. Would help with syncing against url state (with react-router).

Really enjoying the library 👍 Thanks

jeanverster commented 3 years ago

Sup Matt! Thanks for submitting this. Think it would be a good thing to add. Just a few things:

  1. I think we should maybe call it setStep to keep the naming convention inline with prevStep and nextStep etc..
  2. I just noticed that the hook isn't defined in the readme, might be worth adding?
  3. Target branch needs to be changed to develop and not main

Otherwise looks good

mattf96s commented 3 years ago

Cool thanks Jean.

Will make the changes later this evening 👍

jeanverster commented 3 years ago

@mattf96s this has been release in v1.3.0

mattf96s commented 3 years ago

Hey Jean, thanks so much (sorry, have been away) 👍