Description list
Shows a resource's properties as terms and their values.
Preview
Local preview. It doesn't affect real accounts, environments, or run data.
Compare the same example at each size and density. Switching keeps input values and selection state. Size guidance and comparisons
platform-api
- Status
- Running
- Region
- ap-northeast-2
- Cluster ID
- cls-7f3a9c2e41b84d0f9a1e
- Image
- registry.example.com/platform/api@sha256:4f1c9a0b7e2d3c8a6b5f1e0d9c8b7a6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b
- Created
- Description
- Not set
Usage
- Show a resource's properties as terms and their values: a native dl, read by screen readers as a list of name and value pairs. Each Item holds one Term and its Value.
- Inline sets the value beside its term, in a term column of its own width, and moves it under the term where the row is too narrow. Stacked sets every value under its term. columns={2} sets two columns of items where both fit.
- On a phone a pair takes less room: a value as wide as its content stays beside its term where it fits, and one that does not, such as a long identifier, moves under it whole.
- A row is as tall as a menu row of the size, and the small row in compact density. Rows have no lines between them: the term column and the rhythm carry the structure.
- A long value wraps anywhere, so identifiers never push the layout. truncate keeps it to one line instead; the whole value stays in the text and, for text, in the title. copy adds a copy action after the value, which reaches into the row so the row keeps its height, and names its term for screen readers.
- A value with nothing in it reads Not set in muted ink, not a dash or zero. Rename it with labels.empty.
- Don't use a description list for tabular records that share columns; use Table. Don't use it for key figures; use Stat.
- Don't put a whole form in values. A value can hold a link, a Badge or a time element; editing belongs in a form.
- Don't truncate a value someone must read or compare in full without a copy action or another way to see it.
Size: SizeProvider size="small" resizes the whole composition, including portals. The default size is Default. Size guidance and comparisons
Anatomy
Root(dl) → Item(div) → Term(dt) + Value(dd: content, or text + CopyButton)
Keyboard and accessibility
- The list is text and isn't in the Tab order; links and copy actions in values are.
- Enter or Space on a copy action copies the value. The result replaces the action in place, as in CopyButton.
Give each control a name that describes its purpose. Connect error messages to their controls, and signal state with more than color. Automated checks don't replace manual keyboard and assistive technology testing.
Example code
Shared components take their styles from design tokens. Each example sets its own composition and accessibility attributes. The calling screen defines callbacks, refs, and product data.
Key API
The table lists the common wrapper's main props. See the package type declarations for the full types.