Description List
Descriptions renders term and detail pairs from an array, in one or two columns, with links, copy buttons and a "Show more" section. The primitives it's built from, such as DescriptionList, are exported for custom layouts. Hover the email to copy it.
@dentil/description-listOn this page
- Name
- Ada Lovelace
- ada@example.com
- Phone
- +44 7700 900123
- Customer ID
- cus_R8fK2mQ7xLp4Vn
- Created
- 7 Nov 2026, 09:14
- Currency
- GBP
- Balance
- £0.00
- Latest invoice
- INV-1042
- Website
- example.com(opens in a new tab)
- Tax ID
- GB123456789
- Locale
- en-GB
'use client';
import { Descriptions } from '@/components/dentil/description-list/description-list';
const customer = {
id: 'cus_R8fK2mQ7xLp4Vn',
name: 'Ada Lovelace',
email: 'ada@example.com',
phone: '+44 7700 900123',
created: '7 Nov 2026, 09:14',
currency: 'GBP',
balance: '£0.00',
invoice: 'INV-1042',
website: 'https://example.com',
taxId: 'GB123456789',
locale: 'en-GB',
vatExempt: false,
};
export function DescriptionListOverviewDemo() {
return (
<Descriptions
className="w-full max-w-3xl"
columns={[
[
{ term: 'Name', detail: customer.name },
{ term: 'Email', detail: customer.email, copy: customer.email },
{ term: 'Phone', detail: customer.phone },
{
term: 'Customer ID',
detail: <span className="font-mono text-xs">{customer.id}</span>,
copy: customer.id,
},
],
[
{ term: 'Created', detail: customer.created },
{ term: 'Currency', detail: customer.currency },
{ term: 'Balance', detail: customer.balance },
{ term: 'Latest invoice', detail: customer.invoice, href: `#${customer.invoice}` },
],
]}
more={[
{ term: 'Website', detail: 'example.com', href: customer.website, external: true },
{ term: 'Tax ID', detail: customer.taxId, copy: customer.taxId },
{ term: 'Locale', detail: customer.locale },
customer.vatExempt && { term: 'VAT', detail: 'Exempt' },
]}
/>
);
}Installation
pnpm dlx shadcn@latest add @dentil/description-listnpx shadcn@latest add @dentil/description-listyarn dlx shadcn@latest add @dentil/description-listbunx --bun shadcn@latest add @dentil/description-listFiles land in components/dentil/description-list/. It has no stock shadcn dependencies, and installs @dentil/link for item links.
Usage
import { Descriptions } from '@/components/dentil/description-list/description-list';
<Descriptions
columns={[
[
{ term: 'Name', detail: customer.name },
{ term: 'Email', detail: customer.email, copy: customer.email },
],
[
{ term: 'Created', detail: <Date date={customer.created} /> },
{ term: 'Latest invoice', detail: invoice.number, href: `/invoices/${invoice.id}` },
],
]}
more={[
{ term: 'Website', detail: customer.website, href: customer.website, external: true },
customer.tax_id && { term: 'Tax ID', detail: customer.tax_id },
]}
/>Pass items for one list or columns for several. Falsy entries are skipped, so value && { term, detail } adds an item only when there's something to show. more takes the same entries and hides them behind a toggle.
For anything the array doesn't cover, compose the primitives directly. They carry the same layout.
import {
DescriptionDetails,
DescriptionList,
DescriptionTerm,
} from '@/components/dentil/description-list/description-list';
<DescriptionList>
<DescriptionTerm>Status</DescriptionTerm>
<DescriptionDetails>Active</DescriptionDetails>
</DescriptionList>Links
Items with an href render a Link, which uses a plain a by default. Pass your router's link as linkComponent for client-side navigation, or change the default in your copy of the file so you don't pass it on every page.
import Link from 'next/link';
<Descriptions linkComponent={Link} items={items} />Examples
Vertical
Stacks each term above its detail, for sidebars and narrow panels.
'use client';
import { Descriptions } from '@/components/dentil/description-list/description-list';
export function DescriptionListVerticalDemo() {
return (
<aside className="w-full max-w-64 rounded-lg border p-4">
<h3 className="mb-2 text-sm font-medium">Payment</h3>
<Descriptions
orientation="vertical"
items={[
{ term: 'Amount', detail: '£1,250.00' },
{ term: 'Customer', detail: 'Ada Lovelace', href: '#cus_R8fK2mQ7xLp4Vn' },
{
term: 'Payment ID',
detail: <span className="font-mono text-xs">pay_3Qm9sT1vKx</span>,
copy: 'pay_3Qm9sT1vKx',
},
{ term: 'Paid', detail: '7 Nov 2026, 09:16' },
]}
/>
</aside>
);
}Primitives
Custom details, such as a status dot or a multi-line address, with a copy button placed by hand.
- Status
- Active
- Billing address
- 12 Analytical Row
London, EC1A 1BB
United Kingdom
- Subscription ID
- sub_1PqW8eLkdIwHu7ix
- Renews
- 1 Dec 2026
'use client';
import {
DescriptionCopyButton,
DescriptionDetails,
DescriptionList,
DescriptionListColumns,
DescriptionTerm,
} from '@/components/dentil/description-list/description-list';
export function DescriptionListPrimitivesDemo() {
return (
<DescriptionListColumns className="w-full max-w-3xl">
<DescriptionList>
<DescriptionTerm>Status</DescriptionTerm>
<DescriptionDetails className="flex items-center gap-2">
<span aria-hidden className="bg-primary size-1.5 rounded-full" />
Active
</DescriptionDetails>
<DescriptionTerm>Billing address</DescriptionTerm>
<DescriptionDetails>
<address className="not-italic">
12 Analytical Row
<br />
London, EC1A 1BB
<br />
United Kingdom
</address>
</DescriptionDetails>
</DescriptionList>
<DescriptionList>
<DescriptionTerm>Subscription ID</DescriptionTerm>
<DescriptionDetails className="flex items-center gap-2">
<span className="truncate font-mono text-xs">sub_1PqW8eLkdIwHu7ix</span>
<DescriptionCopyButton value="sub_1PqW8eLkdIwHu7ix" aria-label="Copy subscription ID" />
</DescriptionDetails>
<DescriptionTerm>Renews</DescriptionTerm>
<DescriptionDetails>1 Dec 2026</DescriptionDetails>
</DescriptionList>
</DescriptionListColumns>
);
}API reference
Descriptions
| Prop | Type | Default | Description |
|---|---|---|---|
| items | DescriptionItems | — | One list, full width. Pass this or columns. |
| columns | DescriptionItems[] | — | Lists shown side by side from the sm breakpoint, and one after another below it. |
| orientation | 'responsive' | 'vertical' | 'responsive' | responsive puts the term beside the detail from sm. vertical always stacks them, for narrow containers. |
| more | DescriptionItems | — | Items in a collapsed list below, opened by a toggle. The toggle is hidden when every entry is falsy. |
| moreLabel | ReactNode | 'Show more' | The toggle label. |
| defaultMoreOpen | boolean | false | Starts with the more list open. |
| linkComponent | LinkComponent | 'a' | Passed to each item's Link, so next/link or your router renders the anchor. |
| …props | ComponentProps<'div'> | — | Other props (className, id…) are passed to the wrapper. |
DescriptionItem
| Prop | Type | Default | Description |
|---|---|---|---|
| term | ReactNode | — | The label. '' renders a continuation line, such as the second line of an address. |
| detail | ReactNode | — | The value. Long text wraps, and linked text truncates. |
| href | string | — | Renders the detail as a Link, with a chevron that turns into an arrow on hover. |
| external | boolean | false | Opens the link in a new tab and swaps the arrow for an external-link icon. |
| copy | string | — | Text copied by a button beside the detail. It shows on hover, on keyboard focus and on touch screens. |
Primitives
| Prop | Type | Default | Description |
|---|---|---|---|
| DescriptionListColumns | ComponentProps<'div'> | — | Grid that puts its DescriptionList children side by side from sm. |
| DescriptionList | ComponentProps<'dl'> & { orientation? } | — | The dl. Takes the same orientation as Descriptions. |
| DescriptionTerm | ComponentProps<'dt'> | — | A muted term in the first column. |
| DescriptionDetails | ComponentProps<'dd'> | — | The detail beside the term. Add flex items-center gap-2 to put a copy button after it. |
| DescriptionCopyButton | { value: string } & ComponentProps<'button'> | — | Copies value and shows a check for 1.5 seconds. Pass an aria-label that names what it copies. |