Skip to content

Stepper

Shows the current and completed steps in a sequence.

  1. Completed: Details
  2. Review
  3. Complete
stepper-basic-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Controlled step

  1. DetailsAdd the essentials
  2. ReviewCheck your choices
  3. CompleteReady to submit
stepper-demo.tsx

API reference

steps: readonly { label: string; description?: string }[]Required
Steps in display order. Keep labels short. If the steps do not fit, the list scrolls and keeps the current step in view.
currentStep: number (zero-based)Required
Index of the current step. Earlier steps show as complete. Set it to steps.length to show all steps as complete.