Raft Design System

Components · Data Display

DescriptionList

A list of facts about one item — label and value pairs such as a task's Status, Assignee and Created by — where a value that can be changed opens a picker.

StableAlso called PropertyList
import { DescriptionList } from "@botiverse/raft-ui";

A DescriptionList shows a few facts about one item, each as a label and a value: a task's Status, Assignee and Created by, or an agent's runtime and computer. A value that can be changed opens a picker in place.

description-list/compositions/member-info

When to use

SituationUse
A few facts about one item, read side by sideDescriptionList
Change one property of an item in placeThe value in a DescriptionList opens a picker (Choosing a component)
The properties row of task detailsDescriptionList; see Built from existing parts
The permissions an authorization asks forDescriptionList in a dialog (Built from existing parts)
Many items with the same columnsListRow rows, or a table when it has to be one (Built from existing parts)
What happened to the item, in orderTimeline

Anatomy

  • DescriptionList: the list. Required.
  • DescriptionItem: one fact. Required, one per fact.
    • DescriptionTerm: the label. It can hold a small help button after the text.
    • DescriptionDetails: the value.

Variants

VariantUse for
direction="horizontal"Facts in two columns, the label on the left. The label goes above its value only when a value doesn't fit beside it (Labels go above only when a value doesn't fit)
direction="vertical"Facts with the label above the value, in a narrow place such as a side panel
direction="inline"A few short facts in one row, each label beside its value, wrapping onto the next line: a task's properties
description-list/compositions/horizontal

Labels go above only when a value doesn't fit

A horizontal list keeps each label beside its value for as long as the values fit there, and puts the labels above their values only when one doesn't. It decides from what it holds, not from a width picked in advance (When a row runs out of room): an agent's Role, Computer and Model are short enough to stand beside their labels in a 370px profile, where a fixed 384px switch stacked them (Artea, 2026-11-08). The list measures, on every resize and content change:

  • The label column: the widest label, at least 88px and at most 160px (a longer label wraps).
  • The value column: the list's width less the label column and the 16px gap.

It stacks when a value is wider on one line than the value column but no wider than the list, so it would fit on a line of its own; when a piece of a value that can't break, such as one chip in a wrapping row of chips or a long word (an ID, a commit SHA, a URL), is wider than the value column but no wider than the list; or when the value column would be narrower than 160px, as wide as a label may be. Beside the label such a chip would be cut, and such a word would run past the value column (a value's pieces are laid out no narrower than their longest word); on a line of its own each reads whole. A value too long for even a line of its own, such as a paragraph or a row of chips wider than the list, wraps either way and doesn't decide by its whole width, only by its widest piece that can't break. A word set to overflow-wrap: anywhere (on its own element: the value's wrap-break-word wins over a class on the value) breaks wherever it must, so it doesn't decide. The whole list switches at once, never one fact at a time, so the labels stay in one column or all go above.

Stacked, the value sits 2px under its label (the list's row gap) and 10px above the next label (the 2px row gap plus 8px above each following label), so each label reads with its own value, not the one above it.

Inline

direction="inline" lays the facts out like a line of text. Every label and value sits on one baseline, so a status chip, a button and plain text read as one line; the label is 12px from its value, the facts 24px apart, and a row that wraps leaves 8px between lines.

Every fact follows the same flow, whatever its value: it wraps to the next line only when it doesn't fit on this one, with the same 24px and 8px gaps as the others. A fact is at most 24rem wide, or the row's width if that is narrower. Put a long value, such as the message a task came from, in an Ellipsis: it cuts the text at that width and shows the whole of it on hover. The list caps the width but doesn't cut the text, so plain text left outside an Ellipsis wraps inside the 24rem instead. Don't give a long value a line of its own, a full width or other gaps. This is the layout for dense metadata such as a task's properties: a two-column grid (direction="horizontal") gives each fact a line, so a handful of short facts takes a screen's height, and stacks into one column anyway once a value runs out of room beside its label.

A value drawn in a shape hangs its padding into the 12px gap, so its text starts where plain text would and its fill reaches outward (Alignment). raft-ui does this for a Badge (6px), a TaskChip or TaskStatusBadge (7px) or a Button that comes first in DescriptionDetails; the Button takes the Badge's 6px padding to fit. Any other shape, or one wrapped in another element, needs the same pull from its caller: a negative left margin equal to its left padding, and its max-width grown by as much.

description-list/compositions/inline

Behavior

  • Make a value that can be changed a trigger with no frame: it shows the medium tier on hover and press, and opens the popup of a Select or a combobox.
  • Write an empty value that can be set as the action that sets it: Add to a channel.

raft-ui has no frameless value trigger yet; the member-info composition uses a Badge rendered as a button.

Content

  • Write labels as short nouns in sentence case: Status, Assignee, Created by.
  • Build values from existing parts: a status chip (Status), an avatar and a name (Avatar), a reference chip, a runtime chip. Set IDs and times in Space Mono (Typography).
  • Name people and agents by their display names (Writing).

Accessibility

  • The parts render a native dl, div, dt and dd through Base UI's useRender, so screen readers pair each label with its value.
  • A value that opens a picker is a button. Give it an accessible name that says what it changes: aria-label="Change status from In progress".
  • Give a help button in a label an aria-label: aria-label="Explain member roles".

Rules

  • Don't make a fact that can't be changed look clickable: no chevron, no hover, no button.
  • In direction="inline", give every fact the same layout: no fact on a line of its own, no width or gap of its own. Cut a long value with an ellipsis at the fact's 24rem cap, and make the whole value available elsewhere (its tooltip, or the place it links to).

API

DescriptionDetails, DescriptionItem

PropTypeDefault
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

DescriptionList

PropTypeDefault
direction"inline" | "vertical" | "horizontal""vertical"
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

DescriptionTerm

PropTypeDefault
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

Changes

  • 0.95.3 · FixedA label/value list that switches layout on a resize no longer raises a ResizeObserver loop error ([DescriptionList › Labels go above only when a value doesn't fit](https://raft-design.botiverse.build/components/description-list/#labels-go-above-only-when-a-value-doesnt-fit)). A horizontal DescriptionList and MessageActionCard's properties decide whether their labels go above their values (useLabelValueFit) in the next animation frame after a resize, instead of inside the ResizeObserver's callback; several resizes before that frame share one decision. The first frame, a label or value changing and a web font arriving are still decided before the paint.
  • 0.21.2 · FixedDescriptionList inline: a default-size TaskChip or TaskStatusBadge that comes first in DescriptionDetails hangs by its 7px left padding, so its icon or text starts where the other values' text does.
  • 0.9.0 · AddedDescriptionList direction="inline": facts in a wrapping row on one text baseline, 12px from term to value and 24px between facts, with no stacked-list gap. A first-child Badge, TaskChip, TaskStatusBadge or Button in a value hangs its padding outward, so its text starts where plain text does.
  • 0.2.0 · AddedGraduated DescriptionList, Files panel primitives, and LiveAgentActivityBar to the stable entry. DescriptionList includes horizontal layout support.