Stepper

SpinnerSwitch

Shows progress through the steps of a flow.

  1. (completed)
  2. ProfileName and photo(current)
  3. ConfirmReview and finish

Installation

pnpm add krz-ui

Usage

import { Stepper } from "krz-ui";
<Stepper
  current={step}
  onStepClick={setStep}
  steps={[
    { title: "Account", description: "Email and password" },
    { title: "Profile" },
    { title: "Confirm" },
  ]}
/>

API Reference

PropTypeDescription
stepsStepperStep[]Steps with a title and optional description.
currentnumberIndex of the current step. Earlier steps show as complete.
orientation"horizontal" | "vertical"Layout direction.
onStepClick(index: number) => voidMakes completed steps clickable.
className / style / ref—All go to the outer element. See Customization.
classNames{ step?, button?, indicator?, title?, description?, connector? }Extra classes for inner parts.