Skip to content

GhostChatMessage reference ​

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

Headless chat message: one <article> per message with avatar, header, bubble, and footer parts in that DOM order. side and status are configuration; status typing renders a typing indicator with a visually hidden label in the bubble. The header names the article through aria-labelledby. No aria-busy, no live region, no focus management. useGhostChatMessage returns the root and part props for custom templates.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
sideGhostChatMessageSide"start"NoWhich inline side the message sits on. Never changes DOM or reading order, only `data-side` and the themed layout.
statusGhostChatMessageStatus"complete"NoArrival state. `typing` renders the typing indicator instead of the default slot. The component never sets `aria-busy`.
typingLabelstring"Typing"NoVisually hidden text read in place of the typing dots while `status` is `typing`. Localize it, usually with the author ("Ada is typing").

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
avatarAvatar part, usually a GhostAvatar. Mark it aria-hidden when the header names the author.
defaultBubble content. Not rendered while status is typing.
footerFooter part for delivery state, errors, actions, and reactions.
headerHeader part with author and time. Becomes the article's accessible name.

Slot props: avatar ​

None declared.

Slot props: default ​

None declared.

None declared.

Slot props: header ​

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe <article> root with data-side and data-status.
data-partavatarAvatar slot wrapper. Rendered only when the avatar slot is provided.
data-partheaderHeader slot wrapper with a generated id. Rendered only when the header slot is provided.
data-partbubbleMessage content. Always rendered, including while typing.
data-partfooterFooter slot wrapper. Rendered only when the footer slot is provided.
data-parttypingTyping indicator inside the bubble while status is typing.
data-parttyping-dotOne of three aria-hidden dots inside the typing part.
data-sidestart, endInline side on the root. Logical, so end sits on the left in RTL.
data-statuscomplete, typing, streamingArrival state on the root.

CSS variables ​

None declared.

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 ​

None declared.