Components/useStep

useStep

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

Installation

Usage

API Reference

PropTypeDefaultDescription
stepnumber—Current zero-based step index.
totalnumber—Total number of steps.
isFirstboolean—True when on step 0.
isLastboolean—True when on the last step.
progressnumber—Completion percentage 0-100.
goNext() => void—Advance to next step.
goPrev() => void—Go back one step.
goTo(step) => void—Jump to a specific step.
reset() => void—Return to the initial step.