1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
title: CardRow
summary: >-
A hairline-divided list row for use inside Card — entry lists, task lists,
settings rows. The first row's top border removes itself automatically.
---
CardRow is a bare `<li>` inside a `<ul class="card">` — the divider styling
comes entirely from the `.card > li` descendant selector, so there is no
class of CardRow's own.
## Basic
<figure class="example">
<figcaption>Rows</figcaption>
<div data-surface="sunken">
<ul class="card" style="max-width: 22rem;">
<li>Renew passport</li>
<li>Dentist checkup</li>
<li>Rotate mattress</li>
</ul>
</div>
<details open><summary>Markup</summary>
<pre><code><ul class="card" style="max-width: 22rem;">
<li>Renew passport</li>
<li>Dentist checkup</li>
<li>Rotate mattress</li>
</ul></code></pre>
</details>
</figure>
## Clickable
Wrap the row's content in a real `<button>` or `<a>` when the row navigates
or opens something — an accessible clickable row, not a `<li>` with a click
handler and no keyboard support. It fills the row edge-to-edge and picks up
a hover fill on its own; no `--clickable` modifier to remember.
<figure class="example">
<figcaption>Clickable rows</figcaption>
<div data-surface="sunken">
<ul class="card" style="max-width: 22rem;">
<li><button>Tax return 2025.pdf</button></li>
<li><button>Warranty card.pdf</button></li>
</ul>
</div>
<details><summary>Markup</summary>
<pre><code><ul class="card" style="max-width: 22rem;">
<li><button>Tax return 2025.pdf</button></li>
<li><button>Warranty card.pdf</button></li>
</ul></code></pre>
</details>
</figure>
## With content on both ends
The row is a flex container — a leading icon, a two-line middle column, and a
trailing mono value is the most common shape (see the Loop and Archive
patterns for it in context).
<figure class="example">
<figcaption>Leading icon, trailing meta</figcaption>
<div data-surface="sunken">
<ul class="card" style="max-width: 24rem;">
<li>
<span class="avatar" data-square style="--gl-icon: var(--gl-icon-package)"></span>
<div style="flex:1; min-width:0;">
<div style="font-weight: 550;">Dishwasher manual</div>
<div class="type-label" style="margin-top: 2px;">PDF · 2.1MB</div>
</div>
<span class="type-mono" style="color: var(--gl-color-text-tertiary);">2h</span>
</li>
</ul>
</div>
<details><summary>Markup</summary>
<pre><code><ul class="card" style="max-width: 24rem;">
<li>
<span class="avatar" data-square style="--gl-icon: var(--gl-icon-package)"></span>
<div style="flex:1; min-width:0;">
<div style="font-weight: 550;">Dishwasher manual</div>
<div class="type-label" style="margin-top: 2px;">PDF · 2.1MB</div>
</div>
<span class="type-mono" style="color: var(--gl-color-text-tertiary);">2h</span>
</li>
</ul></code></pre>
</details>
</figure>
## API
<table>
<thead><tr><th scope="col">Element / attribute</th><th scope="col">Values</th><th scope="col">Notes</th></tr></thead>
<tbody>
<tr><td><code>li</code></td><td></td><td>Required — a direct child of <code>ul.card</code>. No class of its own.</td></tr>
<tr><td><code>li > button</code> / <code>li > a</code></td><td></td><td>Wrap the row's content to make it clickable, in place of an <code>onClick</code> prop.</td></tr>
</tbody>
</table>