Comment Thread
Nested comment display with reply action, like count, and indented replies.
Really like the new layout. The spacing feels a lot calmer than the previous version.
Agreed. The alignment changes also make the navigation more obvious.
Can we add a note for the animation timing? It feels a bit fast on mobile.
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/comment-thread.tsx
Installation
Using shadcn CLI
npx shadcn add comment-thread --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-mergeRelated Social Components
Activity Feed
List of activity items with avatar, action text, and timestamp.
Activity Feed Item
Timeline style activity entry with avatar, action text, timestamp, and optional attachment preview.
Activity Ticker
Live scrolling activity feed with looping updates and optional pause on hover.
Avatar Group
Stacked avatar group with overflow count.
Chat Bubble
Message bubble with avatar, timestamp, tail pointer for left/right alignment, and read receipt dots.
Comment Box
Comment input with avatar, submit action, and live character count.