Chat List
AI · ChatList
The conversations of a chat workspace: grouped, with unread counts, the agent's state as a dot, the last message and when it came.
Props: groups ({title, mark, items}), selected, onSelect, query / onQueryChange, onSearch(q, parsed), filter, filters, searchPlaceholder, linkAs.
Items: id, name, sub (the last message), time or date (shown relative), tint, avatar / avatarSrc (people), status ("ok", "running", "signal" for waiting on you, "warn", "danger", "idle"), unread, pinned, project, from, href (rows become links; with linkAs your router's).
- Groups in the order people scan: pinned, then the agents of each project, then people.
- Search tokens:
from:Atlas(the name orfrom),in:Northwind(the project or the group),before:2026-04-15andafter:…(thedate), plus free words. Tokens show as chips under the field; their × removes them. onSearchhands the parsed tokens to your server (parseChatQuerydoes the same);filter={false}leaves the filtering to it.
in:northwindbefore:2026-04-15
Props
ChatList
| Prop | Type | Notes |
|---|---|---|
groups | ChatListGroup[] | Groups as you sort them: pinned, the agents of each project, people. |
selected? | string | |
onSelect? | (id: string) => void | |
onSearch? | (q: string, parsed: ChatQuery) => void | Called with the query and its tokens, e.g. to search on your server. |
query? | string | Controls the search (tokens `from:`, `in:`, `before:`, `after:` and words). |
onQueryChange? | (q: string) => void | |
filter? | boolean | `false`: the list does not filter itself (your server does, from `onSearch`). |
filters? | ReactNode | |
searchPlaceholder? | string | |
linkAs? | ElementType | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |