Process Stepper
Web (React)
A wizard-style stepper component for breaking down complex forms and processes into manageable chunks.
A wizard-style stepper component for breaking down complex forms and processes into manageable chunks. Features smooth, dynamic height transitions and animated progress indicators.
Installation
CLI
npx @modus-ui/cli add process-stepperManual
- Copy the code from the component tab.
- Create a file at
components/ui/process-stepper.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
initialStep | number | 1 | The step to start on. |
onStepChange | (step: number) => void | - | Callback fired when the step changes. |
onFinalStepCompleted | () => void | - | Callback fired when the user completes the last step. |
backButtonText | string | "Back" | Text for the back button. |
nextButtonText | string | "Continue" | Text for the next button. |
disableStepIndicators | boolean | false | If true, clicking step indicators won't navigate. |
Comments