Comment Card
Compact comment card with avatar, name, timestamp, body text, like and reply actions.
Jordan Lee
2 hours agoLoved the update. The new flow feels faster and clearer.
Sam Rivera
1 hour agoThis is exactly what we needed. Great work!
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/comment-card.tsx
Installation
Using shadcn CLI
npx shadcn add comment-card --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.