Avatar
A person or organization. The neutral placeholder uses Colors/avatar; photos and logos sit inside AvatarImage.
Figma: 10 / Components / AvatarUsage
Source: src/components/ui/avatar.tsx
import { Avatar, AvatarFallback, AvatarGroup, AvatarImage } from '@/components/ui/avatar'<Avatar>
<AvatarImage src={person.photo} alt={person.name} />
<AvatarFallback />
</Avatar>When to use
When to reach for it, and when to use something else.
Use it for
Complete: People in tables, drawers and kanban cards.
Complete: Organization logos in kanban organization headers.
Complete: AvatarGroup to show who is behind a metric.
Avoid
Not complete: Avatars as the only label for a person; keep the name next to it.
Not complete: Square avatars; GoodUnited avatars are always round.
Avatar
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'xs' | 'sm' | 'default' | 'lg' | 'xl' | 'default' | Diameter from 20px to 40px. |
AvatarGroup
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | 5 | How many placeholders to show when no children are passed. |
| size | AvatarSize | 'default' | Size of every avatar in the group. |
| label | string | – | Accessible name for the group. |