Message Bubble
Chat message bubble with alignment, timestamp, and read receipt.
Hey, did you see the new design specs?
Yes! They look great. Let me review them this afternoon.
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/message-bubble.tsx
Installation
Using shadcn CLI
npx shadcn add message-bubble --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.