Chat
Assistant panel with a header, a thread, and a composer.
One conversation on a document, invoice or task, with replies, mentions and a composer.
One conversation on a document, invoice or task, with one level of replies.
Write a comment and press Comment (or ⌘/Ctrl+Enter). Type @ to pick a member from the list above the field. @mentions of people in the thread read as brand text. Edit or Delete your own comments from the More menu; Reply focuses the composer.
@Daniel Okafor the card on file was declined twice. Can you check with Northwind AP before we retry on Nov 23?
Spoke to Mara in AP. A new Visa goes on file today. @Priya Shah hold the retry.
Holding. I'll retry once the new card is in.
⌘ Enter to send
Use CommentThread for people discussing a record. Comment is the solid primary on its own; pass submitAppearance soft when the page already has one (Retry payment on an invoice). Replies nest one level. Use Chat for the assistant and CommentsPanel for a page's threads.
One conversation on a document, invoice or task: comments, one level of replies, @mentions shown as brand text, in-place edit and delete for your own comments (in a More menu), and a composer. Not the assistant Chat. Built on kit Avatar, Textarea, Button, DropdownMenu, Kbd and AlertDialog.
import { CommentThread } from "agentic-ds-kit";From contracts/commentthread.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| title | string | No | — | Shows the card header with the count. Omit inside CommentsPanel. |
| comments | array | Yes | — | { id, author: { id, name, initials?, avatarSrc? }, createdAt, body, edited?, parentId? }[]; replies nest one level. createdAt is shown in mono as given: use one format, e.g. "Nov 20, 10:03". "@Full Name" of anyone in the thread renders as a mention. |
| currentUserId | string | No | — | Your comments get Edit and Delete. |
| members | array | No | — | { id, name, initials?, avatarSrc?, role? }[]. Typing @ in the composer opens this list above the field (a combobox listbox): arrows move, Enter inserts "@Full Name ", Escape closes and keeps the text. |
| value | string | Yes | — | — |
| onValueChange | function | Yes | — | — |
| onSubmit | function | Yes | — | Comment, an md Button on the composer row; ⌘/Ctrl+Enter posts. |
| submitAppearance | solid | soft | No | solid | soft when another solid primary shares the view (e.g. ChangeReview's Accept all). |
| submitting | boolean | No | false | — |
| onReply | function | No | — | (id) => void; one ghost sm Reply under each top-level thread; focus moves to the composer. |
| onEdit | function | No | — | (id, body) => void. From the More menu. Enter saves, Escape cancels; focus returns to More. |
| onDelete | function | No | — | (id) => void, after a danger AlertDialog. |
| placeholder | string | No | Reply or @mention… | — |
| label | string | No | Comments | — |
| emptyTitle | string | No | No comments yet | — |
| emptyDescription | string | No | — | — |
| loading | boolean | No | false | — |
| error | string | No | — | — |
| onRetry | function | No | — | — |
Assistant panel with a header, a thread, and a composer.
A side panel hosting the comment threads for a page: an Open / Resolved / All filter, thread previews, and the selected thread (pass a kit CommentThread as children) with Resolve.
Vertical sequence of now, next, and later for ordered multi-stage work.
Must-choose overlay that interrupts until the user cancels or confirms.