Stepper

Numbered stepper for multi-step forms that shows each step as a bar and a label, highlighting completed and current steps. Semantic ordered list in React.

src/registry/ui/stepper.tsx/r/stepper.json

Installation#

bash
npx shadcn@latest add @minidev/stepper

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/stepper.json

Usage#

tsx
import { Stepper } from "@/components/ui/stepper"

export function Example() {
  return (
    <Stepper steps={["Account","Workspace","Invite"]} current={1} />
  )
}

API reference#

Stepper props
PropTypeDefault
stepsstring[]["Details", "Members", "Billing"]
currentnumber0
classNamestring-

Examples#

All kanban, timeline and workflow components

Learn more