Layout
Thread
A chat-style conversation: the other party on the left in the sunken surface, you on the right in the accent.
import { EcoThread } from "vue-ecosphere"
Conversation
The side does the work, so nobody has to read a label to know who spoke. Type a message and press Enter.
Kiara Casmer
Senior Product Designer · Northwind
Hey — did you get a chance to look at the warehouse credentials?
Yes. They're 14 months old and auto-renewal was never switched on for that host.
Can we rotate them in the next maintenance window? Nothing downstream should notice, but I'd rather not do it unwatched.
Thursday after 4 works on my end, or most mornings before 9.
One thing — the warehouse still reads through the old connection pool. We should drain that first.
Thursday it is. I'll drain the pool first so nothing downstream notices.
Status bar, stacked and tinted
Stacked puts every message in one column with a name label; tint makes your bubbles quieter beside long replies.
Kiara Casmer
Senior Product Designer · Northwind
Hey — did you get a chance to look at the warehouse credentials?
Yes. They're 14 months old and auto-renewal was never switched on.
Can we rotate them in the next maintenance window?
API
| Name | Type | Default | Description |
|---|---|---|---|
name / hint | string | — | The other party and their role · organisation, in the header. |
initials / myInitials | string | from name / "Me" | Avatar initials for their and your bubbles; a message's own initials win. |
messages | (ThreadMessage | { day })[] | [] | Oldest first. Consecutive messages from one side group into a burst: only the last shows the meta line and avatar. |
status / statusTone / last | string / StatusTone / string | — | The status bar under the header (th__bar): a badge and muted last-activity text. #status slot overrides the badge. |
stacked | boolean | false | One column with name labels, for narrow panes (chat--stacked). |
tint | boolean | false | Your bubbles in the accent tint with dark ink (chat--tint). |
noAvatars / stamps | boolean | false | Hide bubble avatars; a timestamp on every message. |
v-model:draft | string | "" | The message box. Send is enabled only when it has text; Enter sends, Shift+Enter adds a line. |
placeholder | string | "Message <first name>" | Composer placeholder and accessible name. |
actions | boolean | true | Record details and close buttons in the header. #actions slot replaces them. |
height | string | — | Height of the pane. Omit to size to the parent. |
@send / @attach / @details / @close | event | — | Send carries the trimmed text and clears the draft. |
default / #composer | slot | — | Replace the message list or the message box. |