Overview
Reference usage
Single row within a stacked list, typically pairing a label with metadata or an action. It is also the status-first two-line row that every list page shares.
Usage
Status-first two-line row
Pass status (a StatusDot with its word), time, and meta to draw the row the list pages share:
- line one: the status dot and word in a fixed 128px leading column, a bold title, and the time right-aligned at the edge;
- line two: muted
meta, kind first, then agent, then detail, joined by middots. It starts under the title, not under the status, and ends in an ellipsis rather than wrapping.
The column is the same 128px on every page, so titles start at one x position down the list. The dot and word sit on the baseline of the first line of the title and the time shares that baseline, so both stay beside the first line when a title clamps to two lines with an ellipsis. Pass tooltip with the title's text so the full title is the row's tooltip.
A row with nothing to report (a workflow, an available agent) keeps the column's width and leaves it empty: pass statusColumn on the row, or statusColumn on the DataList to keep it for every row. A leading visual such as an avatar follows the column.
Phone and the chat list
On a phone (a viewport narrower than 640px) the status moves to line two beside the kind and agent (Waiting on you · Chat · Tool runner) and the time stays on line one. The word and dot are unchanged, and a row with no status simply has none.
The chat list is a recorded exception on every width, because its pane is too narrow for a leading column. Pass statusPlacement="line-two": line one is the bold title with the time, and line two is the status in a fixed-width column, then a one-line preview, so previews line up. Pass titleLines={1} there so a long title truncates with an ellipsis. On a phone the chat list's status gives up its fixed column as well: line two reads the word, a dot separator, then the preview (Waiting on you · I found order 4471…), and the title clamps at two lines (titleLines={2}).
A third line
Line two ends in an ellipsis, so a reason that must never be cut cannot live there on a narrow screen. Pass detail for a third line that wraps and is never cut: a schedule's phone row says what it is on line two (Active · Workflow · Order refund · Tool runner) and the reason it will not run first on the third, with the cadence last (Order refund can't load · won't run until a provider is connected · Mondays at 11:00 AM). The line starts under the title, or at the left edge under the status on a phone, and a page passes it only where it wants it.
The whole row is one link
With href the title's anchor is stretched over the row, so one click anywhere follows it, hover tints the whole row, and the keyboard focus ring wraps the whole row rather than the title. Anything interactive in trailing, actions, or a button inside meta stays separately usable.
Long values
A title clamps at two lines (titleLines) and an unbroken value, such as a long identifier, wraps anywhere, so no value widens the row past its frame or grows it without bound. This is the default for every row, not a page fix.
A row that fails
A row that cannot load its details passes error: it keeps its status, title and time on line one, and line two says the message beside a warning glyph, in the danger text colour, with the row's own secondary "Try again" button when you pass onRetryClick (rename it with retryLabel). The rest of the list stays live; there is no banner and no full-page error. A row with an error is not a link, and the message replaces meta.
Group row
Pass details to make a collapsed group row (the missed runs under Today on Runs). The row is not a link: a "Show" / "Hide" button at the right of line one reveals details beneath the row, aligned with the title, and expanded is bindable. Set expandLabel and collapseLabel to change the words.
A group row is tinted whether it is open or shut, so it reads as a different kind of row among its neighbours; open, it shows all of line two. Pass tone="warning" for the amber of something that did not happen.
Pass groupLayout="band" for the missed runs among one schedule's runs: one line with the status dot outside a tinted band that holds a chevron, the bold title, muted text and the toggle label at the right (expandLabel="Show each"). The whole band is the button, so a click anywhere on it opens the details.
Selected row
Pass selected for the row open in the detail beside the list (the worker list). It takes an accent tint that stays under the pointer, and sets aria-current on the row's link (on the row itself when it is not a link).
Line two tooltip
Line two ends in an ellipsis when it is long. Pass metaTooltip with the same text to carry it in full as a tooltip over the line, as tooltip does for the title.
Glyph tile
Pass leadingTone to draw leading as a 32px rounded tile tinted with that tone, one glyph per kind (the needs-attention rows on Health use warning). The glyph is decoration and is hidden from assistive technology. Pass lines to take the two-line layout (bold title, one-line muted description, a trailing region beside both lines) on a row that has no status, time or details; add actions for a secondary button per action.
Trailing actions
Pass actions for trailing text buttons (Memory and New chat on Agents). Each is a secondary small button on a tablet or desktop; below 640px they collapse into one menu button ("More actions", 44px under a coarse pointer) with the same actions. A disabled action keeps aria-disabled and stays focusable, with disabledReason as its description and tooltip, in the menu too.
When to use
- Listing entities vertically with consistent leading icons or avatars and trailing actions.
- Linking each row to a detail view by passing href, which makes the whole row one link.
- Listing runs, goals, schedules or agents with a status word, bold title and time on line one and muted meta on line two.
- Comparing tabular data across columns — use table instead.
- Rendering cards in a responsive grid — use grid-list instead.
Examples
Navigable link rows
Passing `href` turns the `title` snippet into an `<a>`, making the whole row a navigable link.
Band group row
groupLayout="band" draws a group row as one line: the status dot outside a tinted band holding a chevron, the bold title, muted text and the toggle label. The missed runs of one schedule use the warning tone.
Basic row
A minimal StackedListItem with the required `title` snippet and a `meta` snippet, mounted inside the DataList container it is designed to compose with.
Chat list: status on line two
The chat list is a recorded exception because its pane is too narrow for a leading column: line one is the bold title with the time, and line two is the status in a fixed-width column, then a one-line preview, so previews line up.
A row that fails to load
One failing row keeps its status, title and time on line one, and its `error` puts the message on line two beside a warning glyph with its own secondary Try again button. The rest of the list stays live; there is no banner.
Glyph tile with actions
leadingTone draws the leading glyph as a tinted tile; lines takes the two-line layout for a row with no status or time, and actions are secondary buttons.
Collapsed group row
Pass details to make a group row, such as the missed runs under Today. It is not a link: Show and Hide reveal the details beneath the row, aligned with the title.
Long values
A long title clamps at two lines and a long line two ends in an ellipsis on one line, each carrying its full text as a tooltip. An unbroken identifier wraps anywhere instead of widening the page. The status column and the time never move.
A 380px list pane
The phone layout keys on the viewport, not the container, so a 380px list pane on a desktop keeps its fixed status column; a long approval title clamps to two lines beside the status, with line two and the time keeping their place.
Selected row
selected marks the row open in the detail beside the list. It takes an accent tint that stays under the pointer, and sets aria-current on the row link.
Status-first two-line row
Line one is a status dot and word in a fixed 128px column, a bold title and the time at the right edge; line two is muted meta that starts under the title. The whole row is one link, and an empty-status row keeps the column so titles line up.
Trailing actions that collapse on a phone
Text actions at the end of a row are secondary buttons on a tablet or desktop and one More actions menu below 640px. A disabled action stays focusable and keeps its reason.
With description and leading icon
A richer row pairing a `leading` visual (here a StatusDot) with a `title` and a secondary `description` snippet below it.
Props
Name | Type | Default | Description |
|---|---|---|---|
density | 'comfortable' | 'condensed' | Density token surfaced as data-cinder-density. When omitted, inherits the
enclosing DataList's list-level density (if any), then falls back to
comfortable. An explicit value here always overrides the list default. | |
leading | snippet | Leading visual (avatar, icon, status dot). With a status column it follows the column. | |
leadingTone | 'neutral''info''success''warning''danger' | Draws leading as a 32px rounded glyph tile tinted with this tone, one glyph per kind (the
needs-attention rows on Health use warning). The glyph is decoration, so give the tile no
accessible name of its own. | |
lines | boolean | Draws the two-line layout (bold title, one-line muted description or meta, a trailing region
centred beside both lines) for a row that has no status, time or details to trigger it. A row
with a leadingTone tile and actions is the usual case. | |
selected | boolean | false | Marks the row as the one open in the detail beside the list. It takes an accent tint, which
stays when the pointer is over it, and sets aria-current on the row's link (or on the row
when it is not a link). |
status | snippet | The row's status: a StatusDot with its word. It leads the row in a fixed 128px column that
every list on every page shares, so titles start at one x position down the list; on a phone
it moves to line two, before the meta. The dot and word sit on the first line of the title. | |
statusColumn | boolean | Keep the status column's width even when this row has no status (a workflow or an agent
with nothing to report), so titles line up. Inherits the enclosing DataList's
statusColumn. Setting it on a row that has a status has no effect. | |
statusPlacement | 'leading' | 'line-two' | 'leading' | Where the status sits. Default leading. |
title required | snippet | Primary label. Required. | |
titleLines | 1 | 2 | 2 | How many lines the title may take before an ellipsis. Default 2; the status and the time
stay beside the first line, and the full title is the row's tooltip. A title never grows a
row without bound, and an unbroken value (an identifier) wraps anywhere. |
tooltip | text | The full title as text, shown as the row's tooltip when the title is clamped. Set it to the
same text the title snippet renders. | |
time | snippet | The time, or the next run, at the right edge of line one, aligned to its top. Pass a
RelativeTime or a plain string. | |
description | snippet | Secondary description below the title. | |
meta | snippet | Line two: muted metadata, kind first, then agent, then detail, joined by middots. It starts under the title (not under the status) and ends in an ellipsis rather than wrapping. A line that must carry a control (an error with its own "Try again") may put one in. | |
metaTooltip | text | Line two as text, shown as a tooltip over line two, which ends in an ellipsis when it is long.
Set it to the same text the meta (or description) snippet renders. | |
wrapMeta | boolean | false | Lets line two wrap onto more lines instead of ending in an ellipsis, so a control in it (a "View
payload" link after a sentence about why a task failed) is never cut off and can always be
pressed. Default false. |
detail | snippet | A third line under line two that wraps instead of ending in an ellipsis, so nothing on it is
ever cut. A schedule row on a phone puts the reason it won't run first and the cadence last
on it; the cadence is the part a narrow screen can lose, so it is the last thing the line
says. It starts under the title, and is not drawn on a row with details. | |
error | text | A row whose own details failed to load: line two says this message beside a warning glyph, in
the danger text colour, in place of meta, and the rest of the list stays live (there is no
banner and no full-page error). Pass onRetryClick for the secondary "Try again" button that
belongs to the row. A row with an error is not a link. | |
onRetryClick | () => void | Called when the row's "Try again" button is chosen. Without it the error shows no button. | |
retryLabel | text | 'Try again' | Text of the error's retry button. Default Try again. |
trailing | snippet | Trailing region (chevron, action button, dropdown trigger). | |
actions | StackedListItemAction[] | Text actions at the end of the row. On a tablet or desktop each is a secondary small button; on a phone (below 640px) they collapse into one menu button with the same actions, which is a 44px target under a coarse pointer. | |
actionsLabel | text | 'More actions' | Accessible name of the phone menu button that holds actions. Default More actions. |
phoneActions | 'menu' | 'buttons' | 'menu' | What actions become on a phone: one menu button ('menu', the default) or full-width
buttons stacked under the row's text ('buttons'), each a 44px target under a coarse pointer. |
details | snippet | Turns the row into a collapsed group row (the missed runs on Runs): a "Show" / "Hide" button at the right of line one reveals this snippet beneath the row, aligned with the title. A group row is not a link. | |
groupLayout | 'row' | 'band' | 'row' | How a group row is drawn. Default row. |
tone | 'neutral' | 'warning' | 'neutral' | The tint of a group row. Default neutral, the inset tint every group row has; warning is
the amber band of the missed runs. |
expanded bindable | boolean | false | Whether a group row's details are showing. Bindable; default false. |
expandLabel | text | 'Show' | Text of the button that opens a group row. Default Show. |
collapseLabel | text | 'Hide' | Text of the button that closes a group row. Default Hide. |
href | text | Destination URL that turns the title snippet into an <a> link. The link covers the whole
row, so the row is one target: hover tints the whole row and the keyboard focus ring wraps it.
Controls inside the row (actions, trailing, a button in meta) stay separately usable. | |
target | HTMLAnchorAttributes['target'] | Browsing context for the title anchor (_blank, _self, _parent, _top, or a named frame). | |
rel | HTMLAnchorAttributes['rel'] | rel attribute forwarded to the title anchor; noopener noreferrer is merged automatically when target="_blank". | |
hreflang | HTMLAnchorAttributes['hreflang'] | hreflang attribute forwarded to the title anchor, indicating the language of the linked resource. |