rhf-stepper — headless multi-step form management for react-hook-form #13291
Unanswered
omerrkosar
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I built a lightweight wrapper that adds step management and per-step validation to react-hook-form. The main problem it solves: you shouldn't have to manually track which fields belong to which step or call
trigger()with field name arrays.What it does
<Step>, andnext()only validates the current step's fieldszodResolver,yupResolver, or inlinerulesonLeavecallback — run async operations (API calls) between steps, only fires onnext(), not on re-rendersuseStepper()hook — accessactiveStep,next,prev,isFirstStep,isLastStepfrom any child componentQuick example
Links
Would love feedback from the community!
Beta Was this translation helpful? Give feedback.
All reactions