Avatar
People round with initials or a picture; organizations and projects at radius 6; agents as a bot face on a square.
AAOAOAOAONNLNLNL
<div className="flex flex-wrap items-end gap-12">
{([20, 24, 28, 32, 40] as const).map((s) => (
<Avatar key={s} name="Ada Okafor" size={s} />
))}
{([20, 24, 32, 40] as const).map((s) => (
<Avatar key={`o${s}`} name="Northwind Labs" kind="org" size={s} />
))}
</div>import { Avatar } from "@logicplanes/kaeso-ui";Props
agent{ name: string; model: string; }The agent that acted for this person, with its name and model family id from the API: a badge of about 40% of the avatar on its corner, and the family in the accessible name, such as
Ada Okafor via Release helper (Claude).decorativebooleanHides it from assistive technology when the same information is already written next to it.
kind"person" | "agent" | "org" = personA person (round), an organization (a cut square), or an agent (a bot face on a cut square).
namestringThe person's, organization's or agent's name; its first letters show without a picture, and it is the accessible name.
size24 | 20 | 28 | 32 | 40 = 24The diameter in pixels.
srcstringThe picture's address; without one, or when it fails to load, the letters show.