Back to components
Comment Thread Panel React component

What is this?

A light comment thread for the margin of a document. The header reads “3 replies” with Resolve, then a quoted passage with a left rule, its source, and three comments whose avatars are joined by a line. The reply field is borderless; sending slides a new comment in at the bottom and updates the count. Resolve folds the thread into one line, “Resolved by you · 3 replies”, with Reopen. Swap the quote and comments, then drop it beside a doc, a design review, or a spec.

Component

Comment Thread Panel

A light comment thread for the margin of a document. The header reads “3 replies” with Resolve, then a quoted passage with a left rule, its source, and three comments whose avatars are joined by a line. The reply field is borderless; sending slides a new comment in at the bottom and updates the count. Resolve folds the thread into one line, “Resolved by you · 3 replies”, with Reopen. Swap the quote and comments, then drop it beside a doc, a design review, or a spec.

Checking access…
Live Preview

Verified Technical Spec

Animation
Framer Motion
Reduced motion
Verified
Keyboard focus
Verified
Compatibility
Tailwind CSS v3.4 + v4 · React 19 / Next.js 15 App Router + Vite / Remix compatible

Included

  • Copy source into Cursor or Claude for agent install
  • Finished React · TypeScript · Tailwind CSS · Motion · Lucide UI

Dependencies

  • React 19.0.0
  • Typescript 5.7.2
  • Tailwindcss 3.4.16
  • Lucide-react 1.23.0
  • Motion 12.42.2

Tech Stack

  • React
  • TypeScript
  • Tailwind CSS
  • Motion
  • Lucide

Version 1.0.0