Chat Bubble
vel-src: components/chat-bubble.css
A messaging UI component for rendering chat conversations. Supports left-aligned (received) and right-aligned (sent) messages with avatars, headers, footers, and color-coded bubble variants.
| Class | Properties |
|---|---|
| vel-chat | flex column container, gap between messages |
| vel-chat-start | left-aligned message row (flex row, items at flex-start) |
| vel-chat-end | right-aligned message row (flex row-reverse, items at flex-end) |
| vel-chat-avatar | 2rem circle avatar — surface-3 bg, border, centered initials or image |
| vel-chat-meta | flex column wrapper for header, bubble, footer; max-width: 70% |
| vel-chat-header | xs muted text label above bubble |
| vel-chat-footer | xs muted text label below bubble (e.g. timestamp, read receipt) |
| vel-chat-bubble | the message bubble — surface-3 bg, border, rounded corners per alignment |
| vel-chat-bubble-primary | gradient purple bubble for sent messages |
| vel-chat-bubble-success | green tint bubble variant |
| vel-chat-bubble-info | cyan tint bubble variant |
| vel-chat-bubble-danger | red tint bubble variant |
Examples
Chat conversation
AK
Y
AK