Mobile › Lists and layout
DescriptionList
Label and value pairs: an order summary, a receipt, account details. A row can be a bold total.
Installation
npx expo install plankui-mobile react-native-safe-area-context expo-hapticsUsage
import { DescriptionList } from "plankui-mobile";
<DescriptionList
items={[
{ label: "Subtotal", value: "€84.00" },
{ label: "Shipping", value: "Free" },
{ label: "Total", value: "€103.32", emphasis: true },
]}
/>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { label, value, emphasis? }[] | value is a string or any element; emphasis draws a bold total with a line above. | |
| layout | 'rows' | 'stacked' | 'rows' | Label left and value right, or label above value for long values. |