Hooks

useWizard

Manage the state of a multi-step wizard. Used internally by the Wizard component, but can be used standalone to build a custom multi-step flow.

import { useWizard } from "@empreint/ui";

const { currentIndex, nextStep, previousStep, isFirstStep, isLastStep } = useWizard({
	totalSteps: 3,
});

Parameters

Prop

Type

Returns

Prop

Type