Define
How to define a stepper using defineStepper
defineStepper
is the core function for creating a customizable stepper. It generates the necessary components and hooks for building your stepper UI and managing its state.
Usage
Define steps
Call defineStepper
with your step configurations:
id
(required): Unique identifier for each step- Add any custom properties (e.g.,
title
,description
) for use in your UI
Return Value
defineStepper
returns an object with:
Scoped
: A Provider component for scoping stepper stateuseStepper
: A custom hook for accessing and controlling the steppersteps
: An array of the defined step objects
Next Steps
Learn how to use the returned components and hooks:
Last updated on