Description list
Shows the details of a record as label and value pairs, one below the other.
zb:description-list zubazar/ui · free (MIT)
Basic usage
BLADE
Pass a [label => value] array with :items.
<zb:description-list :items="[
'Customer name' => 'Ayşe Yılmaz',
'Customer no.' => 'CUS-10482',
'Membership' => 'Premium',
'Orders' => '5',
'Address' => 'No. 14, Moda St., Kadıköy / Istanbul',
]" />
| Prop | Values |
|---|---|
items | ['Label' => 'Value', …] |
Rich values
BLADE
For a badge, a link or a value on several lines, use zb:description-list.item rows; pass the label with label and write the value inside.
<zb:description-list>
<zb:description-list.item label="Status">
<zb:badge variant="success">Delivered</zb:badge>
</zb:description-list.item>
<zb:description-list.item label="Delivered on">
September 12, 2026, 09:42 · <a href="#" class="font-medium text-primary-ink hover:underline">Track shipment</a>
</zb:description-list.item>
<zb:description-list.item label="Notes">
<p>Left with the building attendant; the doorbell does not work.</p>
<p class="mt-1 text-muted">Mehmet Kaya · September 3, 2026</p>
</zb:description-list.item>
</zb:description-list>
| Prop | Values |
|---|---|
label | Row label |
Array and rows together
BLADE
Pass the array and rows together; the array's values come first, then the rows.
<zb:description-list :items="['License no.' => 'AC-2026-0412', 'Company' => 'Acme Software', 'Expiry date' => 'December 31, 2026']">
<zb:description-list.item label="Status">
<zb:badge variant="warning">Awaiting renewal</zb:badge>
</zb:description-list.item>
</zb:description-list>
Inside a card
BLADE
On detail pages, put the list inside an zb:card with a title.
<zb:card title="Customer details" subtitle="Last updated: September 3, 2026">
<zb:description-list class="-my-3" :items="[
'Customer name' => 'Ayşe Yılmaz',
'Phone' => '0 (216) 000 00 00',
'Membership' => 'Premium',
]" />
<zb:slot:footer>
<zb:button size="sm" variant="ghost">Edit</zb:button>
</zb:slot:footer>
</zb:card>
| Prop | Values |
|---|---|
class | Added to the list or to a row |
Props
The values the component takes. What are props and slots?
| Prop | Type | Default | Description |
|---|---|---|---|
items | — | [] | label => value; values are escaped |
description-list.item: label | — | — | Required; the row label |
Slots: description-list: default content (zb:description-list.item rows, after items); description-list.item: default content (the value)
Developer notes
itemsvalues are escaped, so they are not read as HTML.- On wide screens the label sits on the left and the value on the right; on narrow screens the label moves above the value.
classgoes on both the list and the rows; in a card,-my-3balances the spacing of the first and last rows against the card's padding.