Comment Thread
Nested comment thread with replies, likes and inline reply forms; new comments appear instantly.
Copy a prompt for your AI coding tool with the source, dependencies and usage
Props
CommentThreadProps
Also accepts all props of Omit<React.ComponentProps<"div">, "onChange">
| Prop | Type | Default | Description |
|---|---|---|---|
| comments* required | Comment[] | — | — |
| currentUser | string | "You" | — |
| onAdd | (comment: Comment, parentId: string | null) => void | — | — |
Install
$ npx shadcn@latest add https://chromotion.dev/r/comment-thread.json