Avatar

Avatar is used to represent a user. Every Avatar image has a subtle color wash.

also known as Pinner rep, Persona, User Image, Identifier, Identicon

all variations of the avatar component

Usage guidelines

When to use
  • To reflect a person, company or brand within the product
When not to use
  • To represent a group of people, companies and/or brands. Use AvatarGroup instead

Best practices

For general Avatar best practices, refer to the Avatar web documentation.

  • Use the default alternative if no image source is available. This will be the first character of the provided name.
  • Don’t place elements like washes, text or icons on Avatar.
  • Don’t use Avatar to represent metaphorical ideas, like a Board.

example profile with correct avatar size
Do

Use round Avatars in the appropriate size for your need.

example of triangle avatar
Don't

Scale or change the shape of Avatar. Instead use the designated Avatar sizes and style.

avatar with a name underneath
Do

Use the collaborator’s name nearby or in an alternative view if possible.

Accessibility

People use Android’s accessibility features, such as TalkBack and dynamic text sizing to personalize how they interact with their device. Supporting these personalizations ensures that everyone has a great user experience. See Material Design and development documentation about accessibility for Android:

Accessbile design on Android


Accessible development on Android
, Opens a new tab

Design tokens

Anatomy

Variants

Size

  1. xxl (120dp)
  2. xl (60dp)
  3. lg (44dp)
  4. md (32dp)
  5. sm (24dp)
  6. xs (16dp)

Avatar comes in 6 different sizes.

Without an image

If there is no image source provided for the Avatar, the first character of the name provided will be used as a placeholder.

  1. With image
  2. Without image

Stroke

The avatar has an optional 1dp border.