dentil

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-list
On this page
Name
Ada Lovelace
Email
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

Installation

pnpm dlx shadcn@latest add @dentil/description-list
npx shadcn@latest add @dentil/description-list
yarn dlx shadcn@latest add @dentil/description-list
bunx --bun shadcn@latest add @dentil/description-list

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

Examples

Vertical

Stacks each term above its detail, for sidebars and narrow panels.

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

API reference

Descriptions

PropTypeDefaultDescription
itemsDescriptionItems—One list, full width. Pass this or columns.
columnsDescriptionItems[]—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.
moreDescriptionItems—Items in a collapsed list below, opened by a toggle. The toggle is hidden when every entry is falsy.
moreLabelReactNode'Show more'The toggle label.
defaultMoreOpenbooleanfalseStarts with the more list open.
linkComponentLinkComponent'a'Passed to each item's Link, so next/link or your router renders the anchor.
…propsComponentProps<'div'>—Other props (className, id…) are passed to the wrapper.

DescriptionItem

PropTypeDefaultDescription
termReactNode—The label. '' renders a continuation line, such as the second line of an address.
detailReactNode—The value. Long text wraps, and linked text truncates.
hrefstring—Renders the detail as a Link, with a chevron that turns into an arrow on hover.
externalbooleanfalseOpens the link in a new tab and swaps the arrow for an external-link icon.
copystring—Text copied by a button beside the detail. It shows on hover, on keyboard focus and on touch screens.

Primitives

PropTypeDefaultDescription
DescriptionListColumnsComponentProps<'div'>—Grid that puts its DescriptionList children side by side from sm.
DescriptionListComponentProps<'dl'> & { orientation? }—The dl. Takes the same orientation as Descriptions.
DescriptionTermComponentProps<'dt'>—A muted term in the first column.
DescriptionDetailsComponentProps<'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.