Avatar

A person or organization. The neutral placeholder uses Colors/avatar; photos and logos sit inside AvatarImage.

Figma: 10 / Components / Avatar

Usage

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>

Sizes

xs 20px, sm 24px, default 32px, lg 36px and xl 40px.

Initials

When there is no photo, initials can replace the person icon.
AH

Group

Overlapping placeholders for a set of people, as on metric cards.

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

PropTypeDefaultDescription
size'xs' | 'sm' | 'default' | 'lg' | 'xl''default'Diameter from 20px to 40px.

AvatarGroup

PropTypeDefaultDescription
countnumber5How many placeholders to show when no children are passed.
sizeAvatarSize'default'Size of every avatar in the group.
labelstring–Accessible name for the group.

GoodUnited design system. The Figma file is the source of truth for every color, type size and component.

Made with Modulify