Data display / Key–value

Data display

Key–value

A real dl for the facts of one record: term in muted ink, value in primary.

import { EcoKeyValue } from "vue-ecosphere"

On its own

The label column hugs the longest term; a long value wraps inside its own column. Put num on figures so a column of them aligns.

Seats
1,012
Students
916
Spare
96
Largest section
Grade 9-B · 44

Inside a card

In a card body, under an eyebrow naming the record.

Admission record

Applicant
Aarav Nilesh Shah
Applying to
Grade 6
Cycle
2027–28
Guardian
Nilesh Shah · +91 98200 11234
Previous school
St Xavier’s High School, Andheri — a name long enough to wrap onto a second line inside its own column

Facts grid, with section headings

For a full record. A missing value is information: show the dash, never a blank dd or a dropped fact.

Product

Name
Ceramic pour-over kettle, 1.2 litre, matte stone glaze
SKU
SKU-CK12-STONE-0042-EU-RETAIL-2026-B
Category
Kitchen · Brewing
Supplier
Not recorded
Fragile
Yes
Discontinued
No

Stock and pricing

Unit price
24.90
Units in stock
1,284
Reorder point
300
Warehouse
North distribution centre, aisle 14, bay C
Last stocktake
12 Nov 2026
Next delivery
Not recorded

API

NameTypeDefaultDescription
items{ term, value?, num? }[]—The facts, already formatted. Booleans read Yes / No; null, undefined or an empty string shows the muted dash.
#defaultslot—Raw dt / dd pairs instead of items.
gridbooleanfalseFacts grid (kv--grid): term over value, as many columns as fit.
titlestring—Section heading (kv__h) above the list.
as"h2" | "h3" | "h4""h3"Heading level for title.
emptyTextstring"Not recorded"Screen-reader words for an empty value.