Mobile › Feedback
Meter
A labelled measure of a known amount, such as storage, usage or a budget. Turns amber, then red, past limits you set.
Installation
npx expo install plankui-mobile react-native-safe-area-context expo-hapticsUsage
import { Meter } from "plankui-mobile";
<Meter label="Storage" value={42} max={50} valueLabel="42 of 50 GB" warnAt={0.8} dangerAt={0.95} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | What is measured. | |
| value | number | How much is used. | |
| max | number | 100 | The whole amount. |
| valueLabel | string | "value / max" | Shown on the right. |
| warnAt | number | – | Share of max (0 to 1) where the bar turns amber. |
| dangerAt | number | – | Share of max (0 to 1) where the bar turns red. |
| caption | string | – | Small text under the bar. |