A record's fields
import { DescriptionList, Badge } from "@senvenli/react/display";
export default function Example() {
return (
<DescriptionList
items={[
{ label: "Customer", value: "Ada Lovelace" },
{ label: "Status", value: <Badge tone="success">Paid</Badge> },
{ label: "Total", value: "$1,240.00" },
{ label: "Placed", value: "March 18, 2026" },
{ label: "Delivery note", value: "" },
]}
/>
);
}import { DescriptionList } from "@senvenli/react/display";Examples
Stacked
Label over value in columns, for summaries and cards.import { DescriptionList } from "@senvenli/react/display";
export default function Example() {
return (
<DescriptionList
layout="stacked"
columns={3}
items={[
{ label: "Invoice", value: "INV-2026-0318" },
{ label: "Issued", value: "March 18, 2026" },
{ label: "Due", value: "April 17, 2026" },
{ label: "Subtotal", value: "$1,120.00" },
{ label: "Tax", value: "$120.00" },
{ label: "Total", value: "$1,240.00" },
]}
/>
);
}Copyable values and actions
A reference people paste elsewhere gets a copy button; a field may carry its own action.import { Button } from "@senvenli/react/action";
import { DescriptionList } from "@senvenli/react/display";
export default function Example() {
return (
<DescriptionList
items={[
{ label: "Order ID", value: "ORD-1042", copyValue: "ORD-1042" },
{ label: "Tracking number", value: "1Z 999 AA1 01 2345 6784", copyValue: "1Z999AA10123456784" },
{
label: "Shipping address",
value: "12 St James's Square, London",
action: (
<Button variant="link" size="small">
Edit
</Button>
),
},
]}
/>
);
}Guidelines
When to use it
- The fields of one record on its detail page.
Use something else when
- Comparing the same fields across records. Table
Accessibility
Built in
- Uses dl/dt/dd, so each value is read with its label.
- An empty value says "Not set" instead of a blank.
You provide
- Short, noun labels.
API reference
DescriptionList
| Prop | Type | Default | Description |
|---|---|---|---|
itemsRequired | DescriptionListItem[] | – | |
layout | "rows" | "stacked" | "rows" |
|
columns | 4 | 2 | 3 | – | Columns for |
itemsRequiredDescriptionListItem[]layout"rows" | "stacked"Default"rows"rows(label beside value, rules between) for detail pages and side panels;stackedfor summaries and cards.columns4 | 2 | 3Columns for
stacked; default fills 150px+ columns.