Skip to content

Avatar

Rounded-square avatar (not circular). Humans get a light background with a dark initial — color hashed from the name (one person, one color, everywhere). Agents get a solid primary background, instantly distinguishable.

Basic usage

Without src (or when the image fails to load) the first character of name is used:

L图片头像

Humans vs agents

真人:一人一色浅底 数字人:主题色实底

Sizes & online dot

Radius scales with size (~0.3 × edge); online adds a green dot at bottom-right.

API

Props

NameTypeDefaultDescription
srcstringimage URL (falls back to text on error)
namestringname (first character fallback + color hash)
sizenumber32edge length px
kind'user' | 'agent''user'human / AI agent
onlinebooleanfalseonline dot