Comment thread
CoreThreaded comments with replies, reactions, mentions, inline edit, and resolve.
pnpm dlx shadcn@latest add https://wui.alann.works/r/comment-thread.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
comments | ThreadComment[] | — |
defaultComments | ThreadComment[] | — |
onCommentsChange | (comments: ThreadComment[], event: CommentThreadEvent) => void | — |
currentUser* | CommentAuthor | required |
people | CommentAuthor[] | — |
resolved | boolean | — |
defaultResolved | boolean | — |
onResolvedChange | (resolved: boolean) => void | — |
title | ReactNode | — |
reactions | string[] | — |
placeholder | string | — |
maxDepth | number | — |
nowLabel | string | — |
labels | CommentThreadLabels | — |
className | string | — |