Skip to content

Data List

Free

Shows the details of one record as label and value pairs, such as an order or a person. It stacks the pairs by itself in a narrow box.

  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put one DataListLabel and one DataListValue in each DataListItem. For numbers, add text-end tabular-nums to the value, so the digits line up.

The sample also uses Badge. One command adds them with this item:

invoice-summary.tsx

DataList

<dl>
PropTypeDefaultDescription
dividerbooleanfalse
leaderbooleanfalse
orientation"horizontal""vertical""horizontal"
...props<dl> attributes—Every other attribute goes to the <dl>, with a ref.

DataListItem

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

DataListLabel

<dt>
PropTypeDefaultDescription
...props<dt> attributes—Every other attribute goes to the <dt>, with a ref.

DataListValue

<dd>
PropTypeDefaultDescription
...props<dd> attributes—Every other attribute goes to the <dd>, with a ref.
  • Use it for the details of one record: an order, a person, an invoice.
  • Use vertical in side panels and for long labels. A horizontal list stacks by itself in a box under 384px wide.
  • Use leader for a spec list with numbers that end on one edge. Add divider for long lists and for values that wrap.
  • To compare many records in rows and columns, use a table.

Data List is a native <dl>. Each DataListItem is a <div> with a <dt> label and a <dd> value, so a screen reader says each label with its value.

It is not interactive: no focus and no hover. A control in a value, such as a link or a CopyButton, keeps its own states.

For an empty value, show a dash or a short text, such as "Not set".

Right to left: the label column sits at the inline start, on the right. All sides are logical.

  1. AddedData List.
Open the release