

Every state


default


hover


focus


edit-history


editing


confirm-delete


deleted
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "comments-wg17" | Id of the thread; the parts hang off it. |
| label | string | "Comments on WG-17" | Accessible name of the thread. |
| me | string | "joris" | Your id: your comments can be edited and deleted. |
| comments | CommentEditedDeletedComment[] | [ { id: "e1", author: { id: "tomasz", name: "Tomasz Nowak", photo: photo("tomasz") }, at: "2026-11-27T08:42:00Z", bod… | Comments. |
| onEdit | (id: string, body: string) => void | – | Called with the comment's id and its new text after an edit is saved. |
| onDelete | (id: string) => void | – | Called with the comment's id after it is deleted. |
| now | string | null | null | ISO date-time to stamp edits and deletes with, for demos and shots. Null: the moment of the click. |
| locale | string | "en-GB" | Locale for numbers and dates. |
| timeZone | string | "Europe/Amsterdam" | IANA time zone the times are in. |
| labels | { edited: string editedAt: string previous: string deleted: string edit: string delete: string save: string cancel: string confirm: string editLabel: string editedStatus: string deletedStatus: string } | { edited: "Edited", editedAt: "Edited on", previous: "Before the edit", deleted: "This comment was deleted", edit: "E… | Labels. |
| className | string | – | Extra classes on the outer element. |
More comments
All 6comment-03 is in UI ProGet UI Pro, €199


