bearnie

Stepper

A multi-step progress indicator for wizards and forms.

Installation

npx bearnie add stepper
npx bearnie add stepper

Usage

import {
Stepper,
StepperItem,
StepperTrigger,
StepperTitle,
StepperDescription,
StepperSeparator,
} from "@/components/ui/stepper"
<Stepper activeStep={0}>
<StepperItem step={0}>
  <StepperTrigger>1</StepperTrigger>
  <StepperTitle>Step One</StepperTitle>
</StepperItem>
<StepperSeparator />
<StepperItem step={1}>
  <StepperTrigger>2</StepperTrigger>
  <StepperTitle>Step Two</StepperTitle>
</StepperItem>
</Stepper>

Examples

Simple stepper

Vertical orientation

Props

Stepper

PropTypeDefaultDescription
orientation”horizontal” | “vertical""horizontal”Layout direction
activeStepnumber0Current active step (0-indexed)
classstring-Additional CSS classes

StepperItem

PropTypeDefaultDescription
stepnumberrequiredStep index (0-indexed)
classstring-Additional CSS classes

StepperTrigger

Renders as a button. Clicking navigates to that step.

StepperTitle, StepperDescription

Style components for step labels.

StepperSeparator

Visual connector between steps. Place between StepperItem components. Automatically adapts to orientation.