Skip to main content

Stepper

Multi-step progress, horizontal or vertical, with numbers or icons.

Usage

import {Stepper} from 'rn-inkpad';

<Stepper steps={[{label: 'Cart'}, {label: 'Payment'}, {label: 'Done'}]} current={1} />
<Stepper orientation="vertical" steps={steps} current={0} onStepPress={setCurrent} />

Props

NameTypeDefaultDescription
steps{label?: string; icon?: IconProp}[]Steps.
currentnumberActive step (0-based). Previous steps are completed.
orientation'horizontal' | 'vertical'horizontalLayout.
activeColorstringtheme primaryActive step color.
completedColorstringactiveColorCompleted steps color.
pendingColorstringtheme borderPending steps color.
textColorstringLabel color.
completedIconIconPropbuilt-in checkIcon drawn on completed steps.
onStepPress(index: number) => voidMakes the steps pressable.
sizenumber28Circle diameter.
styleStyleProp<ViewStyle>Container style.
labelStyleStyleProp<TextStyle>Label style.