Data
DescriptionList <pm-description-list>
Description list: label and value pairs for detail views (an order, a profile, an invoice).
Overview
Labels sit beside values, and stack above them on phones or with layout="vertical". Plain HTML alternative: <dl class="pm-dl"><div><dt>Plan</dt><dd>Pro</dd></div></dl>.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
layout | 'horizontal' | 'vertical' | — | horizontal (default: label beside value) or vertical (label above value). |
columns | number | — | Number of columns of pairs on wide screens (default 1). |
divided | boolean | — | Draw a line between rows. |
label | string | — | Accessible name for the list. |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Slots
| Slot | Description |
|---|---|
(default) | <pm-description-item> elements. |
<pm-description-item>
One label and value pair in a <pm-description-list>.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
label | string | — | Accessible name (and visible label where the component shows one). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Slots
| Slot | Description |
|---|---|
(default) | The value (text, a badge, a link). |
label | Rich label, instead of the label attribute. |
Used in templates
OrdersCustomer 360Project boardBilling and invoicesProduct pageServer error (500)Onboarding wizard