Agent conversation
Building blocks for a chat thread with an agent: Message (user bubble / agent response), ThinkingIndicator and ShimmerText for in-progress states, MessageActions, SuggestionChips and InlineError. Rules live in AGENT_UI.md; everything is grayscale by default.
Message
Can you set up an intro between Marcus and Priya?
<Message from="user">Can you set up an intro between Marcus and Priya?</Message>
<Message from="agent">
I drafted an intro email from you to Marcus and Priya. It mentions the shared
on-device ML project and suggests Tuesday afternoon.
</Message>Streaming and stopped
<Message from="agent" state="streaming">I drafted an intro email from you to</Message>
<Message from="agent" state="stopped">I drafted an intro email from you to Marcus</Message>Thinking and shimmer
Drafting document…
<ThinkingIndicator />
<ThinkingIndicator icon={<Sparkles />} label="Searching your calendar…" />
<ShimmerText>Drafting document…</ShimmerText>A complete agent turn
<MessageGroup>
<Message from="agent">Here’s the draft. I kept it to three sentences.</Message>
<MessageActions>
<IconButton variant="ghost" size="sm" aria-label="Copy"><Copy /></IconButton>
<IconButton variant="ghost" size="sm" aria-label="Good response"><ThumbsUp /></IconButton>
<IconButton variant="ghost" size="sm" aria-label="Bad response"><ThumbsDown /></IconButton>
<IconButton variant="ghost" size="sm" aria-label="Regenerate"><RefreshCw /></IconButton>
</MessageActions>
</MessageGroup>
<SuggestionChips>
<SuggestionChip>Make it shorter</SuggestionChip>
<SuggestionChip>Add Dana in CC</SuggestionChip>
</SuggestionChips>Inline error
<InlineError
icon={<CircleAlert />}
title="I couldn’t reach your calendar."
description="The connection timed out. Nothing was changed."
action={<Button size="sm">Retry</Button>}
/>