Skip to content

Chat System Message

@astryxdesign/core v0.7.1 · ChatSystemMessage

Alex joined the conversation
Agent is thinking…
Conversation marked as resolved

Usage ​

Use ChatSystemMessage for concise, non-sender content inside a chat transcript. Choose the default variant for factual status notices and the divider variant for date or section breaks. Long default content wraps within the available width. The component exposes status semantics and the divider branch includes a labelled separator.

The row is role="status", so a change here is announced without moving focus. Text goes in the default slot and is required. The icon slot renders before the text in the default variant; the divider variant renders a labelled Divider and ignores the icon.

vue
<script setup lang="ts">
import { ChatSystemMessage } from '@astryx-vue/core/Chat'
</script>

<template>
  <ChatSystemMessage>Alex joined the conversation</ChatSystemMessage>
  <ChatSystemMessage variant="divider">
    March 15, 2026
  </ChatSystemMessage>
</template>

Anatomy

ElementDescription
System messageThe noninteractive status row that carries the chat-system-message theme target.
ContentThe concise caller-provided message or divider label.
Icon contentRendered before the message in the default variant; the divider variant currently does not render it.
DividerA labelled horizontal Divider rendered by the divider variant.

Best practices ​

GuidancePractices
DoKeep the visible message concise and self-contained so it remains understandable without an icon.
DoUse the divider variant for temporal or section boundaries and the default variant for factual status notices.
Don'tUse ChatSystemMessage for sender-authored content; use ChatMessage and ChatMessageBubble instead.
Don'tUse caller-provided icon artwork as the only source of meaning; the visible message must carry the same information.

Examples ​

Common configurations, variations, and states.

Icon

Icons reinforce the message type

Jordan was added to the conversation
Messages are end-to-end encrypted
Agent is generating a response…
Conversation verified by admin

System messages with a leading icon that reinforces the message type. Use icons to help users scan and identify message categories at a glance.

Status Updates

Sarah Chen joined the conversation
Topic changed to "Q2 Launch Planning"
Alex Rivera left the conversation
Conversation marked as resolved

Realistic status messages in a conversation flow showing membership changes, timestamps, and resolution notices.

Variants

Default

Alex joined the conversation
Conversation marked as resolved

Divider

Default and divider variants side by side. Use default for inline status updates and divider for date separators or section breaks.