DescriptionList
Term and value pairs on a real <dl>, stacked or side by side.
Subscription
- Plan
- Pro, billed yearly
- Seats
- 12 of 15 used
- Next invoice
- October 1, 2026 · $240.00
- Billing email
- [email protected]
Installation
Run it from the root of a project already set up with zunoui init.
npx zunoui@latest add description-listDependencies
What add description-list installs alongside the component. The CLI skips any you already have in a compatible version.
ZUNO registry
@zuno/utils
Examples
2 examples · 1 componentSubscription
- Plan
- Pro, billed yearly
- Seats
- 12 of 15 used
- Next invoice
- October 1, 2026 · $240.00
- Billing email
- [email protected]
Stacked
The default: each term above its value, inside a card or a narrow column.
- Project
- Marketing site
- Status
- Active
- API key
zk_live_…4f2a- Domains
- acme.dev
- www.acme.dev
Inline and divided
Side by side from sm up, with dividers; values can carry badges or actions.
API reference
Forwards props and ref to the container element; it only adds composition utilities.
| Prop | Type | Default |
|---|---|---|
DescriptionListThe list of pairs. | dl | — |
layoutTerm above its value, or side by side (1:2 columns) from the sm breakpoint up; inline always stacks on phones. | "stacked" | "inline" | "stacked" |
dividedA border and vertical padding between pairs instead of a gap. | boolean | false |
DescriptionListItemGroups one term with its value(s); a <div> is valid inside <dl>. | div | — |
DescriptionListTermThe label, muted. | dt | — |
DescriptionListDetailsThe value; long words wrap instead of overflowing. A term can have several. | dd | — |
Accessibility
A real <dl>/<dt>/<dd>: screen readers announce a list and pair each term with its value, which a grid of divs cannot do.
The inline layout only changes columns; reading order is always term, then value.
Values can hold links, badges or buttons; give icon-only buttons a name that includes the term (label="Copy API key").
Server-safe: plain HTML and CSS.