Mobile › Display
BarList
Ranked rows with a bar behind each label: top pages, sources, countries.
Installation
npx expo install plankui-mobile react-native-safe-area-context expo-hapticsUsage
import { BarList } from "plankui-mobile";
<BarList items={[{ label: "/pricing", value: 4820 }, { label: "/docs", value: 3110 }]} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { label: string; value: number }[] | The longest bar is the biggest value. | |
| format | (n: number) => string | toLocaleString | Formats the number on the right. |