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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
side | GhostChatMessageSide | "start" | No | Which inline side the message sits on. Never changes DOM or reading order, only `data-side` and the themed layout. |
status | GhostChatMessageStatus | "complete" | No | Arrival state. `typing` renders the typing indicator instead of the default slot. The component never sets `aria-busy`. |
typingLabel | string | "Typing" | No | Visually 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
| Name | Description |
|---|---|
avatar | Avatar part, usually a GhostAvatar. Mark it aria-hidden when the header names the author. |
default | Bubble content. Not rendered while status is typing. |
footer | Footer part for delivery state, errors, actions, and reactions. |
header | Header part with author and time. Becomes the article's accessible name. |
Slot props: avatar
None declared.
Slot props: default
None declared.
Slot props: footer
None declared.
Slot props: header
None declared.
Exposed members
None declared.
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | The <article> root with data-side and data-status. |
data-part | avatar | Avatar slot wrapper. Rendered only when the avatar slot is provided. |
data-part | header | Header slot wrapper with a generated id. Rendered only when the header slot is provided. |
data-part | bubble | Message content. Always rendered, including while typing. |
data-part | footer | Footer slot wrapper. Rendered only when the footer slot is provided. |
data-part | typing | Typing indicator inside the bubble while status is typing. |
data-part | typing-dot | One of three aria-hidden dots inside the typing part. |
data-side | start, end | Inline side on the root. Logical, so end sits on the left in RTL. |
data-status | complete, typing, streaming | Arrival 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.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
None declared.