Layout / Thread

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

Today

Hey — did you get a chance to look at the warehouse credentials?

Kiara9:41 AM

Yes. They're 14 months old and auto-renewal was never switched on for that host.

You9:44 AM

Can we rotate them in the next maintenance window? Nothing downstream should notice, but I'd rather not do it unwatched.

You9:44 AM

Thursday after 4 works on my end, or most mornings before 9.

Kiara10:02 AM

One thing — the warehouse still reads through the old connection pool. We should drain that first.

Kiara10:03 AM

Thursday it is. I'll drain the pool first so nothing downstream notices.

You10:10 AM

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

RepliedLast reply 2:20 PM

Hey — did you get a chance to look at the warehouse credentials?

Kiara9:41 AM

Yes. They're 14 months old and auto-renewal was never switched on.

You9:44 AM

Can we rotate them in the next maintenance window?

You9:44 AM

API

NameTypeDefaultDescription
name / hintstring—The other party and their role · organisation, in the header.
initials / myInitialsstringfrom 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 / laststring / StatusTone / string—The status bar under the header (th__bar): a badge and muted last-activity text. #status slot overrides the badge.
stackedbooleanfalseOne column with name labels, for narrow panes (chat--stacked).
tintbooleanfalseYour bubbles in the accent tint with dark ink (chat--tint).
noAvatars / stampsbooleanfalseHide bubble avatars; a timestamp on every message.
v-model:draftstring""The message box. Send is enabled only when it has text; Enter sends, Shift+Enter adds a line.
placeholderstring"Message <first name>"Composer placeholder and accessible name.
actionsbooleantrueRecord details and close buttons in the header. #actions slot replaces them.
heightstring—Height of the pane. Omit to size to the parent.
@send / @attach / @details / @closeevent—Send carries the trimmed text and clears the draft.
default / #composerslot—Replace the message list or the message box.