Mobile › Navigation

Steps

Where you are in a short flow: segments with the step's name for checkout or sign-up, or dots for onboarding.

Installation

npx expo install plankui-mobile react-native-safe-area-context expo-haptics

Usage

import { Steps } from "plankui-mobile";

<Steps steps={["Cart", "Shipping", "Payment", "Review"]} current={1} />
<Steps variant="dots" steps={pages} current={page} />

API reference

PropTypeDefaultDescription
stepsstring[]One short name per step.
currentnumberThe step you are on, from 0.
variant'bar' | 'dots''bar'Segments with "Step 2 of 4" above, or a row of dots.