v0.0.2
Demos (demo panel, opens in a new tab)

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

Basic usage: view
BLADE

Pass a [label => value] array with :items.

blade
<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',
]" />
PropValues
items['Label' => 'Value', …]

Rich values

Rich values: view
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.

blade
<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>
PropValues
labelRow label

Array and rows together

Array and rows together: view
BLADE

Pass the array and rows together; the array's values come first, then the rows.

blade
<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

Inside a card: view
BLADE

On detail pages, put the list inside an zb:card with a title.

blade
<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>
PropValues
classAdded to the list or to a row

Props

The values the component takes. What are props and slots?

PropTypeDefaultDescription
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

Events, hooks and details
  • items values 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.
  • class goes on both the list and the rows; in a card, -my-3 balances the spacing of the first and last rows against the card's padding.
Zubazar UI · ZubazarDesigned for people.