Chat Message
One message row — avatar with an initials fallback, an author/time meta line, and a sent/received bubble. Group consecutive messages from the same author with showMeta={ false } for a compact follow-up, and drop ChatAttachment chips into the attachments slot.
Ada Lovelace
Are we still on for the design review at 3?
I pushed the latest mockups just now.
You
Yep — see you then. Taking a look now.
These look great 🎉
Installation
Copy the piece into your app — it compiles with your build and the code is yours:
puzzle add piece chat-message
Purely presentational: the parent owns the message data and passes a time string already formatted — the piece never touches dates. Wrap a list of rows in Chat Scroller for a full conversation view.
Usage
import ChatMessage from '@/components/ui/ChatMessage.pzl';
<ChatMessage author="Ada Lovelace" time="9:41 AM" avatarName="Ada Lovelace"></ChatMessage>
Alignment
Ada Lovelace
Received messages sit at the start.
You
Your own messages mirror to the end.
Compact follow-ups
Grace Hopper
First message in a burst shows the full meta.
A follow-up drops the avatar and author…
…and tightens up so the group reads as one.
Attachments
Ada Lovelace
Here are the files from the review.
review-notes.pdf2.4 MB
hero-mockup.png840 KB