Comment Thread

Threaded React comment list with initials avatars, author name, timestamp and body in bordered bubbles. Pairs with the comment composer.

src/registry/ui/comment-thread.tsx/r/comment-thread.json

Installation#

bash
npx shadcn@latest add @minidev/comment-thread

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/comment-thread.json

Usage#

tsx
import { CommentThread } from "@/components/ui/comment-thread"

export function Example() {
  return (
    <CommentThread comments={[{ id: "1", author: "Aman", body: "Looks good — ship it.", time: "2h ago" }]} />
  )
}

API reference#

CommentThread props
PropTypeDefault
commentsComment[]SAMPLE_COMMENTS
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All kanban, timeline and workflow components