Mobile › Lists and layout

Timeline

Steps down a line: order tracking, a history or an onboarding path. Done steps carry a check, the current one a ring.

Installation

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

Usage

import { Timeline } from "plankui-mobile";

<Timeline
  items={[
    { title: "Order placed", time: "09:12" },
    { title: "Out for delivery", detail: "Arriving 14:00–16:00", state: "current" },
    { title: "Delivered", state: "next" },
  ]}
/>

iOS and Android

iOS: Accent dots and line in the iOS type scale.

Android: The same layout in Material's type scale.

API reference

PropTypeDefaultDescription
itemsTimelineItem[]{ title, detail?, time?, state?: 'done' | 'current' | 'next' }; state defaults to done.