Components · Data Display
Description List
AlphaAdded v10.7.0
Key–value rows with list semantics: a receipt, a fee breakdown, the details of a record.
import { DescriptionList } from '@nexub/react';Playground
Props
size
columns
layout
- Subtotal2 items
- $40.00
- Shipping
- $5.00
- Service fee
- $1.50
- Total
- $46.50
<DescriptionList.Root aria-label="Order summary" divided>…</DescriptionList.Root>Examples
Receipt with a total
Stacked, in columns
States
- Subtotal2 items
- $40.00
- Shipping
- $5.00
- Service fee
- $1.50
- Total
- $46.50
default- Subtotal2 items
- $40.00
- Shipping
- $5.00
- Service fee
- $1.50
- Total
- $46.50
size="sm"- Subtotal2 items
- $40.00
- Shipping
- $5.00
- Service fee
- $1.50
- Total
- $46.50
size="md"
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| Root layout | 'inline' | 'stacked' | 'inline' | Label and value on one row, or label above the value. |
| Root columns | 1 | 2 | 3 | 1 | Pairs per row. Falls back to fewer columns when the list itself is narrow. |
| Root divided | boolean | — | A hairline between rows. |
| Root size | 'sm' | 'md' | 'md' | Row height and type size. |
| Item labelrequired | React.ReactNode | — | The term. |
| Item children | React.ReactNode | — | The value. |
| Item emphasis | boolean | — | A total: stronger label and value, and a rule above. |
| Item align | 'start' | 'end' | — | Where the value sits. Defaults to the end when inline, the start when stacked. |
| Item helpText | React.ReactNode | — | A small muted line under the label. |
| columns | 1 | 2 | 3 | 1 | Pairs per row. Falls back to fewer columns when the list's own width is narrow. |
| divided | boolean | — | A hairline between rows. |
| layout | 'inline' | 'stacked' | 'inline' | inline: label at the start, value at the end of one row. stacked: label above the value. |
| size | 'sm' | 'md' | 'md' |
On iOS & Android: DescriptionList
@nexub/react-nativeAlpha
import { DescriptionList } from '@nexub/react-native';
<DescriptionList.Root divided>
<DescriptionList.Item label="Fee">$1.00</DescriptionList.Item>
<DescriptionList.Item label="Total" emphasis>$251.00</DescriptionList.Item>
</DescriptionList.Root>Web vs mobile
Same tokens and prop names. Where the platforms differ:
| Web | iOS & Android | |
|---|---|---|
| Columns | Up to three, by the width of the list itself. | One on phones; two from 600pt of window width. |
| Screen readers | <dl>, <dt> and <dd>. | A row of plain text reads as one element: "Fee, $1.00". |
Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.
On device

iPhone (iOS simulator)

Pixel (Android emulator)
Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.
DescriptionList props
| Prop | Type | Default | Description |
|---|---|---|---|
| layout | 'inline' | 'stacked' | 'inline' | inline: label at the start, value at the end of one row. stacked: label above the value. |
| columns | 1 | 2 | 3 | 1 | Pairs per row. Phones always show one; from 600pt of window width, up to two. |
| divided | boolean | — | A hairline between rows. |
| size | 'sm' | 'md' | 'md' | — |