# Description list

Labeled facts about one record, in rows or stacked columns; empty values read as "Not set", and a value may be copyable.

- Family: display
- Import: `import { DescriptionList } from "@senvenli/react/display";`
- Page: https://design.senvenli.com/docs/components/description-list
- JSON: https://design.senvenli.com/docs/components/description-list.json

## Example: A record's fields

Label beside value, with a rule between rows; an empty value reads "Not set".

```tsx
import { DescriptionList, Badge } from "@senvenli/react/display";

export default function Example() {
  return (
    <DescriptionList
      items={[
        { label: "Customer", value: "Ada Lovelace" },
        { label: "Status", value: <Badge tone="success">Paid</Badge> },
        { label: "Total", value: "$1,240.00" },
        { label: "Placed", value: "March 18, 2026" },
        { label: "Delivery note", value: "" },
      ]}
    />
  );
}
```

## Examples

### Stacked

Label over value in columns, for summaries and cards.

```tsx
import { DescriptionList } from "@senvenli/react/display";

export default function Example() {
  return (
    <DescriptionList
      layout="stacked"
      columns={3}
      items={[
        { label: "Invoice", value: "INV-2026-0318" },
        { label: "Issued", value: "March 18, 2026" },
        { label: "Due", value: "April 17, 2026" },
        { label: "Subtotal", value: "$1,120.00" },
        { label: "Tax", value: "$120.00" },
        { label: "Total", value: "$1,240.00" },
      ]}
    />
  );
}
```

### Copyable values and actions

A reference people paste elsewhere gets a copy button; a field may carry its own action.

```tsx
import { Button } from "@senvenli/react/action";
import { DescriptionList } from "@senvenli/react/display";

export default function Example() {
  return (
    <DescriptionList
      items={[
        { label: "Order ID", value: "ORD-1042", copyValue: "ORD-1042" },
        { label: "Tracking number", value: "1Z 999 AA1 01 2345 6784", copyValue: "1Z999AA10123456784" },
        {
          label: "Shipping address",
          value: "12 St James's Square, London",
          action: (
            <Button variant="link" size="small">
              Edit
            </Button>
          ),
        },
      ]}
    />
  );
}
```

## Guidelines

### When to use it

- The fields of one record on its detail page.

### Use something else when

- [table](https://design.senvenli.com/docs/components/table.md): Comparing the same fields across records.

## Accessibility

Built in:

- Uses dl/dt/dd, so each value is read with its label.
- An empty value says "Not set" instead of a blank.

You provide:

- Short, noun labels.

## API reference

### DescriptionList

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| items | `DescriptionListItem[]` |  | yes |  |
| layout | `"rows" \| "stacked"` | `"rows"` | no | `rows` (label beside value, rules between) for detail pages and side panels; `stacked` for summaries and cards. |
| columns | `4 \| 2 \| 3` |  | no | Columns for `stacked`; default fills 150px+ columns. |

### Tokens it reads

`--ds-border`, `--ds-space-025`, `--ds-space-100`, `--ds-space-200`, `--ds-text`, `--ds-text-subtle`, `--ds-text-subtlest`

## Related

- [stat](https://design.senvenli.com/docs/components/stat.md)
- [table](https://design.senvenli.com/docs/components/table.md)
