Overview
Reference usage
Conversation navigation list for switching among Chat transcripts without embedding the list inside Chat.
Usage
Agent, activity, and loading more
Each ConversationSummary can carry an optional agent ({ id, name }), shown as a label on its row, and an optional activity of idle, running, or awaiting-input. running and awaiting-input render a status indicator with a visible label and an accessible name; idle, or no activity, renders nothing. A row with neither field renders exactly as it did before.
Passing onLoadMore while hasMore is true renders Cinder's LoadMore after the last row, with the list itself as its scroll container, so the next page loads when the user scrolls to the end of the list. The button stays available as a fallback, and buttonLabel and onError are passed through. The list does not fetch or page anything: the host supplies the rows, flips hasMore and loading, and handles the callback. Give the list a bounded height (for example with class or a flex or grid parent) so it scrolls inside that region; the list only becomes a scroll container while the load-more control is showing.
Stacked presentation and its header
presentation="stacked" is the list a host draws beside an open conversation, in a list-detail layout the host owns. Each row is a link (ConversationSummary.href), so it opens in another tab, with its status word (statusWord, a Cinder status word such as Waiting on you) leading line two, the time it last changed (formatTime) at the end of line one, and the latest message or the question it waits on (lastMessageText) as line two. Rows sit under the host's bands (groupBy, which says which row is first so it can carry a time zone) in the order the host gives them (order="given"). A plain click calls onSelectConversation without following the link; a modified click is the browser's.
The list owns its loading (status="loading", skeleton rows after 300 milliseconds) and failing (status="failed" with failure) states, draws the host's own empty state when no conversation is listed, pages with onLoadMore, and can end in one entry that leads somewhere else, such as the archived conversations. The host owns scrolling.
ChatConversationListHeader is its header: the title with the host's actions at the inline end, a search field (bind:search), and status segments with their counts, with before above the title for the way back out of a view.
When to use
- Rendering a multi-conversation chat sidebar beside one active Chat transcript.
- Showing unread counts and last-message previews for compatible conversation snapshots.
- Rendering the message transcript itself — use chat for the active conversation surface.
- Building app-wide primary navigation — use side-navigation or navigation-bar.
Examples
Agent, activity, and paging
Rows show the agent they are with and whether it is running or waiting on the user; the list loads more sessions as the user scrolls to its end.
Basic conversation list
Conversation summaries with an active conversation and unread count.
Props
Name | Type | Default | Description |
|---|---|---|---|
conversations required | ConversationSummary[] | Conversation summaries to render. Sorts by latest message/update time descending unless order is given. | |
activeConversationId | text | null | Currently active conversation id. |
ariaLabel | text | 'Conversations' | Accessible name for the conversations navigation landmark. Default "Conversations". |
emptyText | text | 'No conversations' | Empty state text when no conversations are present. Default "No conversations". |
onSelectConversation | (conversationId: string) => void | Called when a conversation is selected. | |
onLoadMore | () => void | Promise<void> | Called when the next page of conversations should load, which is when the
user scrolls to the end of the list or activates the load-more button.
Providing it, with hasMore, renders Cinder's LoadMore after the last
row. The host supplies the rows and flips hasMore and loading. | |
hasMore | boolean | false | Whether more conversations are available. The load-more control renders only while this is true. Default false. |
loading | boolean | false | Whether a page is loading. Disables the load-more button and marks it busy. Default false. |
buttonLabel | text | Visible label for the load-more button. Default "Load more". | |
onError | (error: unknown) => void | Called when onLoadMore throws or rejects. | |
presentation | 'compact' | 'stacked' | 'compact' | How the list is drawn. compact (the default) is Chat's own list of buttons. stacked is the
list a host draws beside an open conversation: Cinder's DataList of StackedListItem rows,
each a link (ConversationSummary.href) with its status word and time, under day bands, which
the host scrolls itself. The props below apply to stacked. |
order | 'recent' | 'given' | 'recent' | The order of the rows. recent (the default) sorts by the latest message or update, newest
first. given keeps the order the host passes, for a list whose day bands and first row depend
on it. |
groupBy | (summary: ConversationSummary, context: { first: boolean }) => DataListGroup | Group consecutive rows under a header band, such as the day they last changed. first is true
for the first row, which can carry the time zone. stacked only. | |
formatTime | (summary: ConversationSummary) => stringundefined | The time a row shows at the end of its first line, as the person reads it; undefined shows none. stacked only. | |
agentVisible | boolean | Whether line two names the agent before the latest message, as a list dragged wide does. Default false. stacked only. | |
titleLines | 1 | 2 | How many lines a row's title may take. Default 1. stacked only. | |
status | 'ready' | 'loading' | 'failed' | What the list is doing: ready shows the rows, loading shows skeleton rows in their shape
(after 300 milliseconds, so a fast read never flickers), and failed shows failure. Default
ready. stacked only. | |
loadingLabel | text | The accessible name of the loading skeleton. stacked only. | |
failure | {
/** The error's title. */
title: string;
/** The sentence under the title. */
description: string;
/** Further props for the error state, such as th… Show full type{
/** The error's title. */
title: string;
/** The sentence under the title. */
description: string;
/** Further props for the error state, such as the host's own advice and its Try again action. */
props?: { readonly remediation?: string; readonly onRetry?: () => void };
} | What the list says while status is failed. stacked only. | |
empty | snippet | Drawn in place of emptyText when there are no conversations, such as a first-use or no-match state. stacked only. | |
entry | {
/** The row's title, which also names its list. */
label: string;
/** Where the row links to, so it opens in another tab. */
href: string;
/** A lea… Show full type{
/** The row's title, which also names its list. */
label: string;
/** Where the row links to, so it opens in another tab. */
href: string;
/** A leading icon. */
icon?: Snippet;
/** Called with a plain click on the row, which stays in the application; a modified click is the browser's. */
onSelect?: (event: MouseEvent) => void;
} | One more row after the rows and the load-more control, which leads somewhere else rather than
to a conversation: the way to the archived conversations. It is not drawn while the list loads
or has failed. stacked only. | |
endOfListMessage | text | What the load-more control says at the end of the list; an empty string says nothing. stacked only. |