

Every state


default


hover


focus


reply


resolved


resolved-open


text
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "review-rates-42" | Id of the card; the parts hang off it. |
| path | string | "src/shipping/rates.ts" | The file or document path above the lines. |
| kind | "code" | "text" | "code" | "code": mono lines that keep their spacing. "text": lines of a document in the body face. |
| lines | CommentReviewLine[] | [ { number: 40, text: " const zone = zoneFor(order.country)" }, { number: 41, text: " const rate = RATES[zone] ?? RAT… | The commented line with a little context around it. |
| line | number | 42 | Number of the line the comment is on. |
| comments | CommentReviewEntry[] | [ { id: "r1", author: { name: "Aisha Rahman", photo: photo("aisha") }, at: "2026-11-27T09:12:00Z", body: "UK orders h… | Comments. |
| me | CommentReviewPerson | { name: "Joris Bakker", photo: photo("joris") } | You: the author of replies and the one who resolves. |
| resolved | { by: string; at: string } | null | null | Resolved at the start, and by whom. Null: open. |
| onResolve | (resolved: boolean) => void | – | Called with true when resolved and false when reopened. |
| onReply | (text: string) => void | – | Called with the text of a new reply. |
| locale | string | "en-GB" | Locale for numbers and dates. |
| timeZone | string | "Europe/Amsterdam" | IANA time zone the times are in. |
| labels | { line: string commented: string added: string removed: string reply: string replyPlaceholder: string resolve: string reopen: string resolvedBy: string show: string hide: string resolvedStatus: string reopenedStatus: string } | { line: "Line", commented: "commented line", added: "added", removed: "removed", reply: "Reply", replyPlaceholder: "R… | Labels. |
| className | string | – | Extra classes on the outer element. |
More comments
All 6comment-05 is in UI ProGet UI Pro, €199


