Components/useStep

useStep

Multi-step wizard state with isFirst, isLast, and progress helpers.

Installation

Usage

API Reference

PropTypeDefaultDescription
stepnumberCurrent zero-based step index.
totalnumberTotal number of steps.
isFirstbooleanTrue when on step 0.
isLastbooleanTrue when on the last step.
progressnumberCompletion percentage 0-100.
goNext() => voidAdvance to next step.
goPrev() => voidGo back one step.
goTo(step) => voidJump to a specific step.
reset() => voidReturn to the initial step.