Skip to content

ChatMessage

A single chat transcript entry with baked-in entrance and layout motion. Right-aligned accent bubble for the user, left-aligned plain text for the assistant, with optional file attachments and a hover-revealed meta row.

Installation

Install ChatMessage from the Fluid Effect UI registry.

Conversation

What does “good design” actually mean? Everyone says it, no one defines it.
Wednesday 6:06 PM
Good design is mostly invisible — you only notice it when it's missing. It's less about how something looks and more about how effortlessly it lets you do what you came to do.
So function over form?
Wednesday 6:07 PM
Not quite. Form is part of function — something that feels good to use is, in a real sense, working better. The split between the two is mostly a myth.
That reframes it completely.
Wednesday 6:08 PM

Roles

Right-aligned accent bubble.
Left-aligned, no background.

Attachments

Attached micka.png
Can you use this as my new avatar?
Looks great — it'll crop cleanly into the circle.

Entrance motion

What does “good design” actually mean? Everyone says it, no one defines it.
Wednesday 6:06 PM
Good design is mostly invisible — you only notice it when it's missing. It's less about how something looks and more about how effortlessly it lets you do what you came to do.
So function over form?
Wednesday 6:07 PM
Not quite. Form is part of function — something that feels good to use is, in a real sense, working better. The split between the two is mostly a myth.
That reframes it completely.
Wednesday 6:08 PM

API Reference

Types come from the public API. A dash indicates no default is documented here.

ChatMessage props

Public source
PropTypeDefault
idstringRequired
from"user" | "assistant"Required
childrenstring | View.Content<Msg, R> | null—
timestring | View.Content<Msg, R> | null—
actionsView.Content<Msg, R> | null—
attachmentsView.Children<Msg, R>—
animateboolean—
classNamestring—
shapeShapeVariant'rounded'
sizeSizeVariant'default'
surfacenumber1