Message bubble
The container every message in the conversation lives inside. User on the right, assistant/tool on the left, system messages centred. Carries author, timestamp, status, and footer slot.
Included in the single kansho full pack. Components are not offered as separate installs.
Conversation — typical flow
Static preview: the pinned message actions are callback-lessAudit-log review
5 messages · branch audit-log
Boxed assistant reply
Opt back into the box with variant='bubble'; static preview: footer actions are callback-lessStates
Compact density
Quick operator thread
Compact chat container
Rich assistant message states
Static preview: message actions are callback-less; source pills open real linksChain-of-thought variants
Component documentation
Message Bubble
components/agent/message-bubble.tsxPurpose
Frames a user, assistant, system, or tool message with optional author, time, status, metadata, and footer.
Appropriate use
Use as the message-level container in a conversation; use MessageGroup for consecutive same-author bursts.
Example
components/agent/message-bubble.tsx has a representative live example in the "Conversation — typical flow" section on /components/message-bubble.
States
Roles are user, assistant, system, and tool; statuses are sending, streaming, sent, and error; density is comfortable or compact and variant is prose or bubble.
API and props
MessageBubble accepts role, author, timestamp, status, children, meta, footer, density, variant, hideHeader, and className.
Dependencies
Direct imports are React, Lucide icons, AgentDot, Tag, Time, and cn.
Accessibility
Errors use alert semantics and the Sending label is a polite live update; streaming status is not announced, while parseable timestamps use Time.
Limitations
It does not stream content, group authors, retry failures, or manage announcements across an entire thread.
Source
Source: components/agent/message-bubble.tsx.
Full pack
components/agent/message-bubble.tsx is documented at /components/message-bubble and installs only through the single Kansho full pack; no individual component install is offered.