Skip to content
ConversationSystem noticeMenu

System notice

Divider-style events inside the thread: model switched, context compacted, memory updated, agent joined.

Model switched, memory updated, context compacted.

Installation

$ pnpm dlx shadcn@latest add https://chatcn.dev/r/system-notice.json

Usage

tsx
import { SystemNotice, SystemNoticeAction } from "@/components/ui/chatcn/system-notice"

<SystemNotice
  icon={<ContextWindowIcon />}
  action={<SystemNoticeAction onClick={openSummary}>View summary</SystemNoticeAction>}
>
  Context compacted: 86 messages summarized
</SystemNotice>

Props

PropTypeNotes
childrenReactNodeWhat happened, in a few words
iconReactNodeA 14 px icon
actionReactNodeUse SystemNoticeAction for a text-sized link button
timeReactNodeWhen it happened

Accessibility

  • The text is ordinary content, read in place with the transcript. The hairlines are decoration.
  • Actions are real buttons with a 44 px hit area on touch screens.

Motion

None.