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-haptics

Usage

import { BarList } from "plankui-mobile";

<BarList items={[{ label: "/pricing", value: 4820 }, { label: "/docs", value: 3110 }]} />

API reference

PropTypeDefaultDescription
items{ label: string; value: number }[]The longest bar is the biggest value.
format(n: number) => stringtoLocaleStringFormats the number on the right.