This page as markdown: /agent-avatar.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

AgentAvatar

Status: stable

The default avatar for an AI agent's turns: a sable looking out of its den. It peeks at rest, climbs out to look at a nearby pointer, sinks low to think and comes up to talk, so the avatar itself says the agent is working. SVG from semantic tokens on the Avatar size ladder; every agent avatar on a page shares one animation loop.

Keywords: agent, assistant, ai, bot, chat, avatar, copilot, llm, thinking, speaking, mascot, sable

Usage

Use AgentAvatar as the avatar of every AI agent turn in a conversation — the Message avatar of an assistant reply, the header of an agent panel. Drive state from the turn's own pending state: thinking before the first token, speaking while the reply streams, idle once it settles. It replaces the "AI" initials avatar, which reads as a person called A. I.

Best practices

Props

Name Type Default Description
state "idle" | "thinking" | "speaking" "idle" What the agent is doing. thinking sinks it low in the den with its eyes scanning upward; speaking brings it up to talk, bobbing with the reply; idle peeks.
size "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" "md" The Avatar size ladder: 20 / 24 / 32 / 40 / 48px for rows, 96 / 160px for portraits. In a Message, match its avatarSize (default sm).
live boolean true Whether it animates. false settles into the resting frame (ignoring state) and stops tracking the pointer — for every agent turn except the newest.
label string "Assistant" The accessible name (role=img). Use the agent's product name if it has one.
motion "full" | "subtle" | "off" — Turns this avatar's motion down. subtle keeps the states (sinking to think, bobbing to speak) and drops the flourishes: pointer tracking, blinks, ear twitches, idle glances, the spring's overshoot. off draws each state as a still pose. The reader's reduce-motion setting always wins.
className string — Layout only. The frame and ink come from the theme's muted, foreground and background tokens.

Tokens used

muted, foreground, background

Motion

Accessibility

Related

Examples

Default

import { AgentAvatar } from "@sableui/react"

<AgentAvatar />

States

import { AgentAvatar } from "@sableui/react"

<AgentAvatar size="lg" />
<AgentAvatar size="lg" state="thinking" />
<AgentAvatar size="lg" state="speaking" />

Sizes

import { AgentAvatar } from "@sableui/react"

<AgentAvatar size="2xs" />
<AgentAvatar size="xs" />
<AgentAvatar size="sm" />
<AgentAvatar size="md" />
<AgentAvatar size="lg" />
<AgentAvatar size="xl" />

In a conversation (only the newest turn is live)

import { AgentAvatar, Bubble, Message } from "@sableui/react"

<Message messageId="a1" avatar={<AgentAvatar size="sm" live={false} />}>
	<Bubble>Anchor on the oldest rendered message instead.</Bubble>
</Message>
<Message messageId="u1" align="end">
	<Bubble variant="primary" align="end">Does that cover new messages too?</Bubble>
</Message>
<Message messageId="a2" avatar={<AgentAvatar size="sm" state="speaking" />}>
	<Bubble>Yes. Appends leave the anchor alone, so the same rule covers both.</Bubble>
</Message>