Skip to content
OAIT Design System

Design system / Components

List

A column of rows separated by hairlines: settings that open a one-field edit, recent activity, connected accounts, members, and key–value facts.

When to use

  • Several items of the same kind, each a row: "My details", "Recently", "Your other accounts", members of a group (D-CSN-07).
  • A row that opens something as a whole: a one-field edit, a detail page (pressable row).
  • A row that holds its own control: a switch that applies at once, a text button, a 48px icon button (row with controls).
  • Facts about one record, label and value: "Global ID number", "Last sign-in" (key–value rows).

When not to use

Situation Use instead
Records with several comparable columns, sorting, or selection Data table
One subject with a title, text, and actions Card
A long list for members Show five rows and "Show {count} more"; never a numbered pager or infinite scroll (D-CSN-18)
Options to choose from in a form Checkbox and radio rows or choice cards
A menu of actions Menu
App navigation Navigation drawer, bar, or rail

Anatomy

  1. List .oa-list: a <ul> without bullets; a 1px outline-variant hairline between rows, never before the first. .oa-list--card draws it as an outlined card with 8px above and below the rows.
  2. Row .oa-list-row: on the <li> of a row that holds controls, or on the one <a> or <button> inside the <li> of a pressable row.
  3. Leading .oa-list-row__leading (optional): a 24px icon in on-surface-variant, or a 40px avatar or disc.
  4. Content .oa-list-row__content: the headline .oa-list-row__headline (title-sm) and the supporting text .oa-list-row__supporting (body-md, on-surface-variant, two lines at most).
  5. Trailing .oa-list-row__trailing (optional): meta text .oa-list-row__meta, a chip, a mirrored chevron_right, a switch, a text button, or a 48px icon button.
  6. Key–value list .oa-kv: a <dl> of .oa-kv__row (a div holding dt.oa-kv__key and dd.oa-kv__value).

Variants

Variant Class Use for Key tokens
Bare list oa-list Rows inside a card, a sheet, a drawer --color-outline-variant hairlines
List card oa-list oa-list--card A list on the page ("Recently", "My details") --color-card-outlined-container, --color-outline-variant, --radius-card, --space-2 block padding
Pressable row <a> or <button class="oa-list-row"> A row that opens an edit or a page State layer 8% / 12%, inset ring
Row with controls <li class="oa-list-row"> A switch, a text button, an icon button The control's own states
Key–value rows oa-kv Facts about one record --text-body-md, --font-weight-semibold

A row is pressable as a whole or holds controls, never both: a button cannot sit inside a link or another button (canonical §10.12).

Leading discs use the status tones for activity ("Face or fingerprint sign-in added" on success, "Mobile number changed" on warning, "Backup codes replaced" on info, a suspension on error, "A device was signed out" neutral): a round oa-tile oa-tile--sm (Card) beside the words that say what happened.

Sizes

Size Height Padding Type style Icon size
One line at least 56px (--size-list-row) inline 16px (--space-row-inset), the start 24px from 640px (--space-row-inset-medium); block 8px headline title-sm 16/24 600 leading 24px; avatar or disc 40px; trailing chevron 24px
Two lines at least 72px (--size-list-row-two-line) as one line headline title-sm; supporting body-md 14/20 as one line
Three lines at least 88px (--size-list-row-three-line) block 12px; leading and trailing align to the top headline and two lines of body-md as one line
Key–value row its content's block 12px; key and value 8px apart when stacked, 16px when on one row key body-md, value body-md 600 —

Rows are 16px apart between slots. The start padding is 24px from 640px so row text lines up with card padding; the end stays 16px (canonical §4.5, D-ARC-25).

Tokens

Part Property Token
List hairline between rows 1px --color-outline-variant
List card background, edge, corner, block padding --color-card-outlined-container, 1px --color-outline-variant, --radius-card, --space-2
Row least height --size-list-row, --size-list-row-two-line, --size-list-row-three-line
Row padding --space-row-inset inline; --space-row-inset-medium start from 640px; --space-2 block (--space-3 for three lines)
Row gap --space-4
Row edge 1px transparent (forced colors)
Headline type, color --text-title-sm, --color-on-surface
Supporting, meta type, color --text-body-md, --color-on-surface-variant
Leading, trailing icons color --color-on-surface-variant
Pressable row, hover / pressed layer currentColor at --opacity-state-hover / --opacity-state-pressed
Pressable row, focus ring offset --size-focus-inset (−4px)
Pressable row, disabled content --color-on-surface at --opacity-state-disabled-content
Key type, color --text-body-md, --color-on-surface-variant
Value type, weight, color --text-body-md, --font-weight-semibold, --color-on-surface
Key–value rows gap, padding, hairline --space-stack-tight (stacked), --space-4 (one row), --space-3, 1px --color-outline-variant
Inset divider start --space-row-inset + --size-avatar-sm + --space-4 (Divider)

States

State Pressable row Row with controls
Enabled No fill; the list's ground shows No fill
Hover ((hover: hover)) 8% layer of on-surface (--opacity-state-hover), faded over duration-short-3 The control's own hover
Focus-visible The family ring drawn inset (−4px), inside the list's clip The control's own ring
Pressed 12% layer (--opacity-state-pressed), at once The control's own layer
Disabled Rare, never to signal invalid input: content on-surface at 38%, no layer The control's disabled look
Selected or current Not used: a current page is navigation (drawer) —
Loading Skeleton rows in the final layout, the list aria-busy —

Behavior

  • Pressable or controls, never both. A pressable row is one <a> (it navigates) or one <button> (it opens a one-field edit, aria-haspopup="dialog"), with a mirrored chevron_right at the end. A row with controls is a plain <li>; its switch applies at once (Switch) (canonical §10.12, template 6).
  • Five, then "Show {count} more". Member-facing lists show five rows and an outlined md button "Show {count} more" after the list; it appends the next items and moves focus to the first new row. No numbered pages, no infinite scroll (D-CSN-18).
  • Locked values say why in the row, in the product's shipped words ("From the Registrar", "From IT Services"; "Set by the ID office" only for a value the ID office sets, such as the Global ID number), with a lock icon, and are not pressable (canonical §10.4, §11 template 6).
  • Key–value rows stack below a 640px-wide container and sit on one row, the value at the inline end, from 640px. It is a container query, because these lists live in cards, side panes, and dialogs (D-LAY-02).
  • Phones. Member data that is a table on desktop becomes list rows or key–value cards on phones (one outlined card per record) (canonical §10.13).
  • Motion. Only the state layer's opacity fades; nothing moves.

Accessibility

  • Element. <ul> (or <ol> when order matters) with <li> rows; key–value facts in a <dl>. A list card that is a section of the page sits under a visible heading.
  • Names. A pressable row's name is its headline then its supporting text ("Mobile +961 71 214 723"); keep the headline first. A control in a row is named by the row's headline (aria-labelledby) and described by its supporting text (aria-describedby) (Switch); a text button names its item ("Disconnect Google").
  • Keyboard. Tab reaches each pressable row or each control; Enter (and Space on buttons) activates. Focus after "Show {count} more" moves to the first new row.
  • Focus. The ring is inset (−4px) because the list card clips its rows.
  • Targets. Rows are at least 56px tall and full width; trailing controls 48px.
  • Narrow rows. The text slot keeps at least 96px (flex: 1 1 var(--space-24) on .oa-list-row__content, with flex-wrap: wrap on the row): when a trailing button would leave it less, at a 320px window beside "Disconnect", the trailing slot wraps onto its own line at the inline end, 8px under the text, instead of breaking "Connected" inside the word (WCAG 1.4.10).
  • Contrast. Supporting text and icons in on-surface-variant reach 9.33:1 (light) and 10.87:1 (dark) on the list card; disc icons on their containers reach 7.2:1 or more in both themes (contrast report).
  • Not by color alone. Disc tones repeat what the words say.
  • Forced colors. Pressable rows keep a 1px edge; hairlines stay.

RTL and languages

  • Logical padding: the start inset (24px from 640px) sits on the right in Arabic. chevron_right takes oa-icon--mirror; logout mirrors too; lock, check, and status glyphs do not (canonical §8.3).
  • Phone numbers, emails, and IDs in rows sit in <bdi dir="ltr"> (translate="no" for IDs); IDs are mono code-sm (.oa-mono.oa-text-code-sm), in rows and key–value lists alike (canonical §3.5, §14.2).
  • Arabic dates come from Intl with ar-u-nu-latn: "الأحد، 1 نوفمبر، 19:05".
  • French headlines wrap: rows grow; never truncate a headline (D-TYP-15).

Content

  • Headline: the field or the event, sentence case, no full stop: "Preferred name", "Mobile", "Mobile number changed", "Face or fingerprint sign-in added".
  • Supporting: the value, or when it happened, or a status: "Not added", "Mon 2 Nov, 08:42", "Connected as Layla Haddad", "Connected · Confirmed you were part of Global University on 27 October 2026". Two lines at most.
  • Key–value: keys are nouns ("Global ID number", "University email", "Student since", "Last sign-in"); values are the data ("Today 08:42", "No sign-in recorded").
  • Show more: "Show {count} more" / "عرض {count} أخرى" / "Afficher {count} de plus" (Global ID's linked.showMore).
  • Arabic (Global ID): "الهاتف المحمول", "عنوان السكن" · "غير مضاف", "تم تغيير رقم الهاتف المحمول", "آخر تسجيل دخول" · "اليوم 08:42".

Do and don't

Do Don't
Make the whole row one button that opens the one-field edit. Put a button inside a pressable row, or make a row with a switch also clickable.
Show five rows, then "Show {count} more". Number the pages of a member list or scroll it forever.
Use one hairline color, outline-variant, between rows. Draw dividers in surface-container-base or at 70% (retired).
Keep supporting text to two lines by writing less. Truncate a headline with an ellipsis.
Say why a locked value is locked. Show a disabled row with no reason.

Code

HTML (reference CSS)

Rows pressed as a whole, and a locked row:

<ul class="oa-list oa-list--card">
  <li>
    <button class="oa-list-row oa-list-row--two-line" type="button" aria-haspopup="dialog">
      <span class="oa-list-row__leading"><span class="oa-icon" aria-hidden="true" translate="no">face</span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">Preferred name</span>
        <span class="oa-list-row__supporting">Layla</span>
      </span>
      <span class="oa-list-row__trailing"><span class="oa-icon oa-icon--mirror" aria-hidden="true" translate="no">chevron_right</span></span>
    </button>
  </li>
  <li>
    <button class="oa-list-row oa-list-row--two-line" type="button" aria-haspopup="dialog">
      <span class="oa-list-row__leading"><span class="oa-icon" aria-hidden="true" translate="no">call</span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">Mobile</span>
        <span class="oa-list-row__supporting"><bdi dir="ltr">+961 71 214 723</bdi></span>
      </span>
      <span class="oa-list-row__trailing"><span class="oa-icon oa-icon--mirror" aria-hidden="true" translate="no">chevron_right</span></span>
    </button>
  </li>
  <li>
    <button class="oa-list-row oa-list-row--two-line" type="button" aria-haspopup="dialog" style="--oa-state: var(--opacity-state-hover)">
      <span class="oa-list-row__leading"><span class="oa-icon" aria-hidden="true" translate="no">location_on</span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">Home address</span>
        <span class="oa-list-row__supporting">Not added</span>
      </span>
      <span class="oa-list-row__trailing"><span class="oa-icon oa-icon--mirror" aria-hidden="true" translate="no">chevron_right</span></span>
    </button>
  </li>
  <li>
    <button class="oa-list-row oa-list-row--two-line" type="button" aria-haspopup="dialog" data-demo-focus>
      <span class="oa-list-row__leading"><span class="oa-icon" aria-hidden="true" translate="no">emergency</span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">Emergency contact</span>
        <span class="oa-list-row__supporting">Not added</span>
      </span>
      <span class="oa-list-row__trailing"><span class="oa-icon oa-icon--mirror" aria-hidden="true" translate="no">chevron_right</span></span>
    </button>
  </li>
  <li class="oa-list-row oa-list-row--two-line">
    <span class="oa-list-row__leading"><span class="oa-icon" aria-hidden="true" translate="no">badge</span></span>
    <span class="oa-list-row__content">
      <span class="oa-list-row__headline">Global ID number</span>
      <span class="oa-list-row__supporting"><bdi class="oa-mono oa-text-code-sm" dir="ltr" translate="no">GU-25-000123</bdi> · Set by the ID office</span>
    </span>
    <span class="oa-list-row__trailing"><span class="oa-icon" aria-hidden="true" translate="no">lock</span></span>
  </li>
</ul>

Rows that hold controls, and a three-line row:

<ul class="oa-list oa-list--card">
  <li class="oa-list-row oa-list-row--two-line">
    <span class="oa-list-row__leading"><span class="oa-icon" aria-hidden="true" translate="no">mail</span></span>
    <span class="oa-list-row__content">
      <span class="oa-list-row__headline" id="ct-row-new-device">Email me when someone signs in on a new device</span>
      <span class="oa-list-row__supporting" id="ct-row-new-device-hint">Sent to <bdi dir="ltr">layla.haddad@example.com</bdi></span>
    </span>
    <span class="oa-list-row__trailing">
      <button class="oa-switch" type="button" role="switch" aria-checked="true" aria-labelledby="ct-row-new-device" aria-describedby="ct-row-new-device-hint"><span class="oa-switch__track"><span class="oa-switch__thumb"><span class="oa-icon" aria-hidden="true" translate="no">check</span></span></span></button>
    </span>
  </li>
  <li class="oa-list-row oa-list-row--two-line">
    <span class="oa-list-row__leading"><span class="oa-avatar oa-avatar--org oa-avatar--sm" aria-hidden="true">G</span></span>
    <span class="oa-list-row__content">
      <span class="oa-list-row__headline">Google</span>
      <span class="oa-list-row__supporting">Connected as Layla Haddad</span>
    </span>
    <span class="oa-list-row__trailing">
      <button class="oa-btn oa-btn--text oa-btn--sm" type="button" aria-label="Disconnect Google">Disconnect</button>
    </span>
  </li>
  <li class="oa-list-row oa-list-row--three-line">
    <span class="oa-list-row__leading"><span class="oa-avatar oa-avatar--org oa-avatar--sm" aria-hidden="true">M</span></span>
    <span class="oa-list-row__content">
      <span class="oa-list-row__headline">Microsoft</span>
      <span class="oa-list-row__supporting">Connected · Confirmed you were part of Global University on 27 October 2026</span>
    </span>
  </li>
</ul>

Leading discs, and "Show {count} more":

<div class="oa-stack">
  <ul class="oa-list oa-list--card">
    <li class="oa-list-row oa-list-row--two-line">
      <span class="oa-list-row__leading"><span class="oa-tile oa-tile--sm oa-tile--round oa-tile--success" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">fingerprint</span></span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">Face or fingerprint sign-in added</span>
        <time class="oa-list-row__supporting" datetime="2026-11-02T08:42+02:00">Mon 2 Nov, 08:42</time>
      </span>
    </li>
    <li class="oa-list-row oa-list-row--two-line">
      <span class="oa-list-row__leading"><span class="oa-tile oa-tile--sm oa-tile--round oa-tile--warning" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">call</span></span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">Mobile number changed</span>
        <time class="oa-list-row__supporting" datetime="2026-11-01T19:05+02:00">Sun 1 Nov, 19:05</time>
      </span>
    </li>
    <li class="oa-list-row oa-list-row--two-line">
      <span class="oa-list-row__leading"><span class="oa-tile oa-tile--sm oa-tile--round oa-tile--info" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">key</span></span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">Backup codes replaced</span>
        <time class="oa-list-row__supporting" datetime="2026-10-30T10:12+02:00">Fri 30 Oct, 10:12</time>
      </span>
    </li>
    <li class="oa-list-row oa-list-row--two-line">
      <span class="oa-list-row__leading"><span class="oa-tile oa-tile--sm oa-tile--round oa-tile--success" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">photo_camera</span></span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">Your photo was approved</span>
        <time class="oa-list-row__supporting" datetime="2026-10-29T14:30+02:00">Thu 29 Oct, 14:30</time>
      </span>
    </li>
    <li class="oa-list-row oa-list-row--two-line">
      <span class="oa-list-row__leading"><span class="oa-tile oa-tile--sm oa-tile--round" aria-hidden="true"><span class="oa-icon oa-icon--filled oa-icon--mirror" aria-hidden="true" translate="no">logout</span></span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">A device was signed out</span>
        <time class="oa-list-row__supporting" datetime="2026-10-27T09:00+02:00">Tue 27 Oct, 09:00</time>
      </span>
    </li>
  </ul>
  <div>
    <button class="oa-btn oa-btn--outlined" type="button">Show 3 more</button>
  </div>
</div>

Key–value rows, and a key–value card for phones:

<dl class="oa-kv">
  <div class="oa-kv__row">
    <dt class="oa-kv__key">Global ID number</dt>
    <dd class="oa-kv__value"><bdi class="oa-mono oa-text-code-sm" dir="ltr" translate="no">GU-25-000123</bdi></dd>
  </div>
  <div class="oa-kv__row">
    <dt class="oa-kv__key">University email</dt>
    <dd class="oa-kv__value"><bdi dir="ltr">layla.haddad@example.com</bdi></dd>
  </div>
  <div class="oa-kv__row">
    <dt class="oa-kv__key">Student since</dt>
    <dd class="oa-kv__value">1 September 2025</dd>
  </div>
  <div class="oa-kv__row">
    <dt class="oa-kv__key">Last sign-in</dt>
    <dd class="oa-kv__value">Today 08:42</dd>
  </div>
</dl>
<article class="oa-card">
  <h3 class="oa-card__title">Rami Khoury</h3>
  <dl class="oa-kv">
    <div class="oa-kv__row">
      <dt class="oa-kv__key">Global ID number</dt>
      <dd class="oa-kv__value"><bdi class="oa-mono oa-text-code-sm" dir="ltr" translate="no">GU-24-000481</bdi></dd>
    </div>
    <div class="oa-kv__row">
      <dt class="oa-kv__key">Status</dt>
      <dd class="oa-kv__value">Invited</dd>
    </div>
    <div class="oa-kv__row">
      <dt class="oa-kv__key">Last sign-in</dt>
      <dd class="oa-kv__value">No sign-in recorded</dd>
    </div>
  </dl>
</article>

Arabic:

<ul class="oa-list oa-list--card">
  <li>
    <button class="oa-list-row oa-list-row--two-line" type="button" aria-haspopup="dialog">
      <span class="oa-list-row__leading"><span class="oa-icon" aria-hidden="true" translate="no">call</span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">الهاتف المحمول</span>
        <span class="oa-list-row__supporting"><bdi dir="ltr">+961 71 214 723</bdi></span>
      </span>
      <span class="oa-list-row__trailing"><span class="oa-icon oa-icon--mirror" aria-hidden="true" translate="no">chevron_right</span></span>
    </button>
  </li>
  <li>
    <button class="oa-list-row oa-list-row--two-line" type="button" aria-haspopup="dialog">
      <span class="oa-list-row__leading"><span class="oa-icon" aria-hidden="true" translate="no">location_on</span></span>
      <span class="oa-list-row__content">
        <span class="oa-list-row__headline">عنوان السكن</span>
        <span class="oa-list-row__supporting">غير مضاف</span>
      </span>
      <span class="oa-list-row__trailing"><span class="oa-icon oa-icon--mirror" aria-hidden="true" translate="no">chevron_right</span></span>
    </button>
  </li>
  <li class="oa-list-row oa-list-row--two-line">
    <span class="oa-list-row__leading"><span class="oa-tile oa-tile--sm oa-tile--round oa-tile--warning" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">call</span></span></span>
    <span class="oa-list-row__content">
      <span class="oa-list-row__headline">تم تغيير رقم الهاتف المحمول</span>
      <time class="oa-list-row__supporting" datetime="2026-11-01T19:05+02:00">الأحد، 1 نوفمبر، 19:05</time>
    </span>
  </li>
</ul>
<dl class="oa-kv">
  <div class="oa-kv__row">
    <dt class="oa-kv__key">رقم <bdi lang="en" translate="no">Global ID</bdi></dt>
    <dd class="oa-kv__value"><bdi class="oa-mono oa-text-code-sm" dir="ltr" translate="no">GU-25-000123</bdi></dd>
  </div>
  <div class="oa-kv__row">
    <dt class="oa-kv__key">آخر تسجيل دخول</dt>
    <dd class="oa-kv__value">اليوم 08:42</dd>
  </div>
</dl>

Tailwind CSS v4

<!-- List card: hairlines between rows through divide-y. A bare list drops the card classes. -->
<ul class="m-0 list-none divide-y divide-outline-variant overflow-hidden rounded-card border border-outline-variant bg-card-outlined-container p-0 py-2">
  <li>
    <!-- Pressable row (two lines). One line: min-h-14. Three lines: min-h-22 items-start py-3. -->
    <button type="button" aria-haspopup="dialog" class="relative isolate flex min-h-18 w-full items-center gap-4 border border-transparent px-row-inset py-2 text-start text-on-surface before:absolute before:-inset-px before:-z-1 before:bg-current before:opacity-0 before:transition-opacity before:duration-short-3 before:ease-standard hover:before:opacity-(--opacity-state-hover) active:before:opacity-(--opacity-state-pressed) focus-visible:-outline-offset-4 sm:ps-row-inset-medium">
      <span class="flex shrink-0 items-center justify-center text-on-surface-variant"><!-- Icon 24px --></span>
      <span class="flex min-w-0 flex-1 flex-col">
        <span class="text-title-sm">Mobile</span>
        <span class="text-body-md text-on-surface-variant"><bdi dir="ltr">+961 71 214 723</bdi></span>
      </span>
      <span class="ms-auto flex shrink-0 items-center gap-2 text-on-surface-variant"><!-- chevron_right, mirrored in RTL --></span>
    </button>
  </li>
</ul>

<!-- Key–value rows: one row from a 640px-wide container. -->
<dl class="@container divide-y divide-outline-variant">
  <div class="flex flex-col gap-stack-tight py-3 @min-[40rem]:flex-row @min-[40rem]:items-baseline @min-[40rem]:justify-between @min-[40rem]:gap-4">
    <dt class="text-body-md text-on-surface-variant">Last sign-in</dt>
    <dd class="text-body-md font-semibold text-on-surface @min-[40rem]:text-end">Today 08:42</dd>
  </div>
</dl>

React

Prop Type Default Description
List.variant "bare" | "card" "card" card draws the outlined list card.
ListRow.headline ReactNode — Required.
ListRow.supporting ReactNode — Up to two lines.
ListRow.leading ReactNode — A 24px Icon, an Avatar (40px), or a round Tile (40px).
ListRow.trailing ReactNode — Meta, a chip, a switch, or a button; only when the row has no href or onClick.
ListRow.href string — The row is a link, with a mirrored chevron.
ListRow.onClick () => void — The row is a button (one-field edit), with a mirrored chevron.
ListRow.lines 1 | 2 | 3 from content Least height 56, 72, or 88px.
KeyValue.items { key: ReactNode; value: ReactNode }[] — Rendered as a <dl>.
<List>
  <ListRow leading={<Icon name="call" />} headline={t('mobile.label')}
    supporting={<bdi dir="ltr">{mobile}</bdi>} onClick={() => openEdit('mobile')} />
  <ListRow leading={<Icon name="mail" />} headline={t('newDevice.label')} supporting={t('sentTo', { email })}
    trailing={<Switch checked={on} onChange={save} labelledBy="new-device" />} />
</List>