Skip to content
MoonUIMoonUI
ComponentsTemplatesPricing
Sign inGet started

Getting started

  • Introduction
  • Installation
  • CDN
  • Authentication
  • shadcn CLI
  • MCP Server
  • Usage

Components

Foundation25 components
  • Alert
  • Aspect Ratio
  • Avatar
  • Badge
  • Button
  • Button Group
  • Checkbox
  • File Upload
  • Input
  • Kbd
  • Label
  • Radio Group
  • Rating
  • Select
  • Slider
  • Switch
  • Textarea
  • Toggle
  • Toggle Group
  • Separator
  • Tags Input
  • Color Picker
  • Date Picker
  • Simple Editor
  • Input OTP
Layout10 components
  • Accordion
  • Breadcrumb
  • Card
  • Carousel
  • Collapsible
  • ResizablePro
  • Scroll Area
  • StepperPro
  • Table
  • Tabs
Navigation & Overlays11 components
  • Alert DialogPro
  • Command
  • Context MenuPro
  • Dialog
  • Dropdown Menu
  • Hover CardPro
  • MenubarPro
  • Pagination
  • Popover
  • SheetPro
  • Tooltip
Feedback4 components
  • Progress
  • Skeleton
  • Spinner
  • Toast
Data & Analytics4 components
  • Data TablePro
  • Advanced ChartPro
  • DashboardPro
  • WidgetsPro
Navigation4 components
  • Command AI+Pro
  • SidebarPro
  • NavbarPro
  • Navigation MenuPro
AI Chat4 components
  • MessagePro
  • Message ScrollerPro
  • AttachmentPro
  • Conversation MarkerPro
Content Management6 components
  • Advanced FormsPro
  • Form WizardPro
  • Quiz FormPro
  • Credit Card InputPro
  • Phone Number InputPro
  • Rich Text EditorPro
Project Management3 components
  • KanbanPro
  • TimelinePro
  • CalendarPro
Performance & Utility8 components
  • Virtual ListPro
  • Memory Efficient DataPro
  • Lazy ComponentPro
  • Optimized ImagePro
  • Performance MonitorPro
  • Performance DebuggerPro
  • Error BoundaryPro
  • Health CheckPro
Interactive & Animation15 components
  • Animated NumberPro
  • Floating DockPro
  • Text RevealPro
  • Image ComparePro
  • Splash CursorPro
  • GitHub StarsPro
  • Animated ButtonPro
  • Magnetic ButtonPro
  • Magnetic ElementsPro
  • Mouse TrailPro
  • Hover Card 3DPro
  • Spotlight CardPro
  • Floating Action ButtonPro
  • LightboxPro
  • Media GalleryPro
Gesture & Touch7 components
  • Swipeable CardPro
  • Draggable ListPro
  • Pinch ZoomPro
  • Swipe ActionsPro
  • Gesture DrawerPro
  • Click AnimationsPro
  • Touch GesturesPro
Text Animations12 components
  • Text HighlighterPro
  • Typewriter TextPro
  • Scrambled TextPro
  • Word RotatePro
  • Morphing TextPro
  • Flip TextPro
  • Number TickerPro
  • Glitch TextPro
  • Shiny TextPro
  • Wavy TextPro
  • Gradient TextPro
  • Text 3DPro
Animations12 components
  • Animated ListPro
  • Bounce EffectPro
  • Blur FadePro
  • Elastic AnimationPro
  • MarqueePro
  • Parallax ScrollPro
  • Reveal CardsPro
  • Scroll RevealPro
  • Fade TransitionsPro
  • Focus TransitionsPro
  • Path AnimationsPro
  • SVG AnimationsPro
Layouts1 components
  • Bento GridPro
Effects9 components
  • ConfettiPro
  • Cursor TrailPro
  • Glow EffectPro
  • Pixel ImagePro
  • Neon EffectPro
  • ShimmerPro
  • RipplePro
  • SparklesPro
  • SpotlightPro
Backgrounds17 components
  • Grid PatternPro
  • MeteorsPro
  • Aurora BackgroundPro
  • ParticlesPro
  • StarfieldPro
  • Dot PatternPro
  • Grid DistortionPro
  • WavesPro
  • Matrix RainPro
  • Liquid BackgroundPro
  • Mesh GradientPro
  • Glitch BackgroundPro
  • Gradient FlowPro
  • Floating ElementsPro
  • Bubble BackgroundPro
  • Geometric PatternsPro
  • Code SnippetsPro
Special UI1 components
  • Glow CardPro
Showcase8 components
  • iPhone MockPro
  • Android MockPro
  • Safari MockPro
  • GlobePro
  • Dotted MapPro
  • Icon CloudPro
  • Tweet CardPro
  • File TreePro

Advanced

  • Theming
  • Customization
  • CLI
  • Help & Support
  1. Docs
  2. Components
  3. Stepper

Stepper

Pro

A general-purpose, composition-based step indicator, decoupled from any form wizard. Compose Stepper with Step, StepIndicator, StepTitle, and StepDescription; the Stepper provides the active step via context and each step derives its completed, active, or upcoming state automatically.

Pro features

What the Pro version adds to this component.

  • Composition API

    Assemble Stepper > Step > (StepIndicator + StepTitle + StepDescription) just like mature stepper libraries, with connectors added automatically

  • Controlled or Uncontrolled

    Drive it with activeStep, or omit it and let defaultActiveStep plus internal state handle navigation — every step still derives completed / active / upcoming from its DOM index, with no per-step wiring

  • Two Orientations

    Switch between horizontal and vertical layouts; the connectors and step alignment adapt automatically

  • Clickable Steps

    Provide onStepClick and each step becomes a keyboard-accessible button that reports its index for navigable flows

  • Automatic Completed State

    Completed steps render a check icon and a filled connector by default, so progress reads at a glance

  • Accessible & Token-Based

    role="group", aria-current on the active step, and design-token colors that adapt to dark mode with no hardcoded values

Installation

Install via CLI

npx @moontra/moonui-cli add stepper

Usage

Pro required
Account
Profile
3
Review
4
Done

Examples

Horizontal Stepper

Pro

The default orientation lays steps out in a row with automatic connectors between them. Completed steps show a check, the active step is highlighted, and upcoming steps stay neutral — all derived from activeStep.

Pro required

Vertical Stepper

Pro

Set orientation="vertical" to stack steps with a vertical connector. Each step places the indicator on the left and the title and description in a column beside it.

Pro required

Clickable Steps

Pro

Pass onStepClick to make every step a real, keyboard-accessible button. Clicking a step (or pressing Enter/Space when focused) reports its index — wire it to state to build a navigable flow.

Pro required

Uncontrolled (defaultActiveStep)

Pro

activeStep is optional. Omit it and pass defaultActiveStep instead: the Stepper keeps the active index in internal state and advances it on click, so no useState in your component. onStepClick is still what makes the steps clickable — it now fires in addition to the internal update. Provide activeStep whenever you need to drive the flow from outside (validation, routing, Back/Next buttons); the two modes are mutually exclusive, activeStep always wins.

Pro required

With Descriptions

Pro

Add a StepDescription under each StepTitle for extra context. It renders as muted helper text and works in both orientations.

Pro required
Previous
Scroll Area
Next
Table
MoonUIMoonUI

168 React components. 45 free under MIT, 123 Pro.

Unsubscribe anytime.

Product

  • Components
  • Templates
  • Pricing

Resources

  • Documentation
  • GitHub
  • Support

Legal

  • Privacy
  • Terms
  • Refund Policy
Made by Moontra Software
  • X
  • LinkedIn
  • GitHub
  • YouTube