โœฆ StealThis .dev

Chat Bubble

Chat message bubbles with sender/receiver variants, avatar, timestamp, status indicators (sent/delivered/read), and grouping.

Open in Lab
css
Targets: HTML

Code

Chat Bubble

Message bubble components for chat interfaces, supporting both sent (outgoing) and received (incoming) variants with full status indicators.

Variants

  • Sent โ€” right-aligned bubble with accent background (your messages)
  • Received โ€” left-aligned bubble with subtle background (othersโ€™ messages)
  • Grouped โ€” consecutive messages from the same sender collapse avatar and reduce spacing

Status indicators

sent ยท delivered ยท read

Each status is represented by a small icon below the sent message (single check โ†’ double check โ†’ blue double check).

Features

  • Pure CSS with no JavaScript
  • Avatar with fallback initials
  • Timestamps on each message
  • Grouping reduces visual clutter for rapid-fire messages
  • Accessible with role="log" and aria-label on the chat container