Skip to main content
  1. Docs
  2. Components
  3. Data display

Description list

Facts about one record, as terms and values: each pair read together, every detail page lined up the same way.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.6
Renders
<dl>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A record's details: a user's email and status, a key's scopes.
  • A summary in a card, beside its actions.
Not for
  • Many records to compareTable
  • Key numbers at a glanceStat
  • Fields to editForm

02

Anatomy

  1. 1description-item<div>One pair, a line below it.
  2. 2description-term<dt>What the value is.
  3. 3description-value<dd>The value: text, a Badge, a link, a copy button.
  4. 4not-set<span>"—", read as "Not set".

03

Do and don't

Pairs, not a paragraph
DoEach fact a term and its value: scanned, and read in pairs.
Don'tThe facts run together in a sentence.
Show what's not set
DoAn empty value as "—": the field exists, with nothing in it.
Don'tThe pair left out: is there no manager, or no field?

04

Content

  • Terms a word or two, sentence case, no colon: Email, Last sign-in.
  • Values as shown elsewhere: a Badge for a status, mono for an ID.
  • Leave a value empty, not N/A: it shows —, read as Not set.
Next — Description listAPI