StepIndicator
StepIndicator shows progress through a multi-step process. Use for wizards, onboarding flows, or guided experiences.
Preview
Section titled “Preview”✓
Question2
Cast3
InterpretBasic Usage
Section titled “Basic Usage”✓
Step 12
Step 23
Step 3<StepIndicator steps={[ { key: 'question', label: 'Question' }, { key: 'cast', label: 'Cast' }, { key: 'interpret', label: 'Interpret' }, ]} currentStep={1}/>Vertical Layout
Section titled “Vertical Layout”✓
Ask Your QuestionFocus your mind on what you want to know
2
Cast HexagramThrow the coins six times
3
InterpretationReview the reading and reflect
<StepIndicator variant="vertical" steps={[ { key: 'question', label: 'Ask Your Question', description: 'Focus your mind on what you want to know' }, { key: 'cast', label: 'Cast Hexagram', description: 'Throw the coins six times' }, { key: 'interpret', label: 'Interpretation', description: 'Review the reading and reflect' }, ]} currentStep={1}/>Interactive Steps
Section titled “Interactive Steps”Allow clicking on completed steps to navigate back.
✓
Setup✓
Details3
Confirm4
Done<StepIndicator steps={steps} currentStep={2} onStepPress={(index) => setCurrentStep(index)}/>API Reference
Section titled “API Reference”StepIndicator Props
Section titled “StepIndicator Props”| Prop | Type | Default | Description |
|---|---|---|---|
steps | Step[] | Required | Array of steps |
currentStep | number | Required | Currently active step index |
variant | 'horizontal' | 'vertical' | 'horizontal' | Layout variant |
onStepPress | (index: number) => void | - | Click handler for completed steps |
style | ViewStyle | - | Custom styles |
accessibilityLabel | string | 'Progress indicator' | Screen reader label |
| Prop | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Unique step identifier |
label | string | Yes | Step label text |
description | string | No | Optional description |
completedIcon | ReactNode | No | Custom completed icon |