Components · Messages
SystemMessage
An event line in a conversation — a date, a claim, a hand-off, a status change — set in Space Mono between hairlines, alone or collapsed into a group.
Also called Event line
import { SystemMessage } from "@botiverse/raft-ui";An event line: one centered line in the timeline that records something that happened, such as a date, "Bugen claimed #25" or a task moving to Done. It isn't a message: nobody wrote it, so it has no avatar or name. A run of event lines can collapse into one summary line.
When to use
Agents write their actions as event lines, not messages; see Hand-offs and approvals.
Anatomy
SystemMessage: the line, with a hairline on each side.SystemMessageTime: when it happened. Optional.SystemMessageContent: what happened. Required.
A group adds:
SystemMessageGroup: the collapsible group.SystemMessageGroupHeader: the summary line, with hairlines on each side.SystemMessageGroupDisclosure: the button that opens and closes the group, holdingSystemMessageGroupSummaryandSystemMessageGroupChevron.SystemMessageGroupPanel: the event lines inside.
Variants
Behavior
- A line keeps one line: its content truncates, and the full text is in its
title. - A single line is a turn of its own: it sits the message step, 16px, from the text above and below it, like a new sender line (Timeline rhythm). It keeps 12px above its text and 4px under it, the lead and row inset of a message row, so the next row's lead makes up the rest. A collapsed group's header keeps the same distances around its disclosure's text. Lines inside an open group sit closer together.
- The group's chevron turns when the group opens.
Content
- Name who did it, the verb and the item: "Bugen claimed #25", "Wug → Martin · review #25", "Martin moved #25 to Done".
- Use teammate verbs and display names (Writing).
- Don't start a line with an emoji: emoji are content, not icons (Iconography).
- Summarize a group by count and kind, in sentence case: "3 updates: 2 task updates, 1 system message".
Accessibility
- A single line is a plain
div; it isn't interactive. - Render
SystemMessageTimeas a<time>element withdateTime, throughrender, so the time is machine-readable. - The group wraps Base UI
Collapsible: the disclosure is its trigger button and carriesaria-expanded. The summary text is its accessible name; the chevron is hidden.
Rules
- Set event lines in Space Mono,
text-mono-meta, inforeground-hint, centered between twoline-hairlinerules. Machines write them (Typography).
API
SystemMessage, SystemMessageContent
Also takes the attributes of its element.
SystemMessageGroup
Also takes the attributes of its element.
SystemMessageGroupChevron, SystemMessageGroupDisclosure, SystemMessageGroupHeader
Also takes the attributes of its element.
SystemMessageGroupPanel
Also takes the attributes of its element.
SystemMessageGroupSummary, SystemMessageTime
Also takes the attributes of its element.