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/bearnie/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

With icons

Use icons instead of numbers for a more visual representation.

With large titles

Use custom classes to create larger, more prominent titles.

Use the href prop to create steps that link to page sections. A link icon appears on hover.

With custom letters

Use letters or custom text instead of numbers.

Completed steps with checkmark

Show a checkmark icon for completed steps.

Vertical with icons and descriptions

A complete vertical stepper with icons and detailed descriptions.

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 by default. When href is provided, renders as an anchor link with a link icon on hover.

PropTypeDefaultDescription
hrefstring-When provided, renders as an anchor link
classstring-Additional CSS classes

StepperTitle, StepperDescription

Style components for step labels.

StepperSeparator

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