MindeesUI
ComponentsDisplay

Avatar

User avatar with image source, initials fallback, size scale, and circle or square shape, plus a stacked AvatarGroup with overflow counting.

Avatar renders a profile image with a graceful fallback to derived initials when no source is provided. AvatarGroup overlaps a row of avatars and collapses overflow into a +N chip.

Import

import { Avatar, AvatarGroup } from '@mindees/ui';

Usage

<Avatar src="https://i.pravatar.cc/80" name="Ada Lovelace" size="md" />
<AvatarGroup max={3}>
  <Avatar name="Ada Lovelace" />
  <Avatar name="Grace Hopper" />
  <Avatar name="Katherine Johnson" />
  <Avatar name="Hedy Lamarr" />
</AvatarGroup>

Avatar props

PropTypeDefaultDescription
srcstring | { uri: string }Image URL string or RN image source. When omitted or empty, initials render.
initialsstringExplicit fallback text. Overrides the value derived from name.
namestringFull name used to derive two-letter initials and to populate accessibilityLabel.
size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'Fixed pixel sizing — 24, 32, 40, 56, 80 dp respectively.
shape'circle' | 'square''circle'Circle uses a half-side radius. Square uses the md radius token.

AvatarGroup props

PropTypeDefaultDescription
maxnumber4Maximum avatars to display. Remaining children collapse into a +N indicator.
childrenReactNodeAvatar elements to stack. Order is left-to-right; later items overlap earlier ones via negative margin.

Accessibility

Avatar uses accessibilityRole="image" and labels itself with name (falling back to "Avatar"). AvatarGroup itself is non-semantic so screen readers traverse each contained avatar individually.

On this page