Stepper
Shows the current and completed steps in a sequence.
- Completed: Details
- Review
- 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.
npm
yarn
pnpm
bun
Controlled step
- DetailsAdd the essentials
- ReviewCheck your choices
- 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.