Avatar

Playground

Properties

Size
Kind
Type
Is me
Deactivated
Status badge
Status

Usage

For the default type, set initials to a single character. For image, pass src; for error, pass errorTooltip. AgentAvatar includes a default icon. RuntimeAvatar supports only image and error, and only RuntimeAvatar supports xl. Use AvatarBadge for status and AvatarGroupCount for groups.

'use client';
import { Avatar } from '@mbsw/ui';

export default function Example() {
  return <Avatar initials="A" label="User A" size="md" />;
}

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

Composition