Avatar

Playground

Properties

Size
Kind
Type
Is me
Deactivated
Status badge
Working
Show count
Status

Usage

Use Avatar for people, AgentAvatar for agents, and RuntimeAvatar for runtimes. The example below shows an agent at work and a group of people and agents.

'use client';

import { AgentAvatar, Avatar, AvatarBadge, AvatarGroupCount } from '@mbsw/ui';

export default function Example() {
  return (
    <div style={{ display: 'flex', alignItems: 'center', gap: 24 }}>
      <AgentAvatar
        label={"Research agent"}
        isWorking
        workingLabel={"Working"}
      />
      <AvatarGroupCount
        aria-label={"5 participants"}
        total={5}
        avatars={3}
        size="md"
        showCount
      >
        <Avatar initials="M" label={"Minji Kim"} />
        <AvatarBadge
          type="agent"
          avatarType="default"
          label={"Research agent"}
          status="busy"
          statusLabel={"Working"}
          workingLabel={"Working"}
        />
        <Avatar initials="S" label={"Seojun Lee"} />
      </AvatarGroupCount>
    </div>
  );
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition