Skip to content

GhostChatMessage reference ​

Package: @ghostvue/themes. Status: experimental (stability policy).

Themed chat message. Adds data-themed on the article root and a grid recipe: avatar column on the message's side, header above the bubble, footer below it. Start bubbles use the muted surface, end bubbles the primary action colors, with a transparent border for forced colors and static typing dots under reduced motion. Behavior matches @ghostvue/vue GhostChatMessage.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
sideGhostChatMessageSide"start"NoForwarded inline side; end aligns the message to the inline end.
statusGhostChatMessageStatus"complete"NoForwarded arrival state; typing shows animated dots.
typingLabelstring"Typing"NoForwarded visually hidden typing label.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
avatarAvatar part, usually a GhostAvatar with aria-hidden.
headerAuthor and time; names the article.
defaultBubble content.
footerDelivery state, errors, and actions.

Slot props: avatar ​

None declared.

Slot props: header ​

None declared.

Slot props: default ​

None declared.

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-partrootGrid container with avatar, header, bubble, and footer areas.
data-partbubbleRounded bubble, capped at about 80% of the log width and 40rem.

CSS variables ​

NameDescription
--ghost-surface-muted-bgStart bubble background.
--ghost-surface-fgStart bubble text.
--ghost-action-primary-bgEnd bubble background.
--ghost-action-primary-fgEnd bubble text and link color.
--ghost-radius-lgBubble corner radius.
--ghost-motion-duration-slowTyping dot pulse timing.

Accessibility ​

Role: article. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/feed/.

Required ARIA attributes: none.

Keyboard ​

None declared.

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

chat-message/streaming-chat ​

Example source

Streaming support chat

Log that follows a streamed reply, stops when the reader scrolls up, offers Jump to latest with an unread count, and announces arrivals in one status region.

Support chat

  1. Assistant
    Hi! How can I help with your workspace today?
  2. You
    Our nightly report export did not arrive this morning.
  3. Assistant
    Sorry about that. Which workspace is it, and when did the last export arrive?
  4. You
    Workspace "Northwind ops". The last one came on Sunday night.
  5. Assistant
    Thanks. Is anything else failing, or only the export?
  6. You
    Only the export. Dashboards still load fine.

Enter to send, Shift+Enter for a new line

chat-message/sides ​

Example source

Sides

Messages from another person on the start side and from the current user on the end side, each named by its header.

  1. Ada Lovelace
    Can you review the release notes before the 2 PM cut?
  2. You
    On it. I will leave comments in the draft by 1:30.

chat-message/typing ​

Example source

Typing indicator

A reply that has not arrived yet, with animated dots and a visually hidden typing label.

  1. You
    Is the staging deploy finished?
  2. Grace Hopper
    Grace Hopper is typing