Avatar

An avatar is a visual representation of a user, which can contain an image or placeholder graphic.

Elements

Basic and bordered avatar.
  1. Image/graphic: Visual representation of the user. If there is no custom image for a user, the default graphic will be shown.
  2. Border (optional): Outline, to improve the visual prominence of an avatar in a UI element.

Usage

An avatar is typically used to represent the current user in the masthead. However, based on your product's use cases and needs, there is room for customization, as outlined in the following avatar variations section.

Variations

There are 4 size variations available to use for different scenarios:

  1. Small (sm), 24px

    • Default size.
    • Used in accordions, data lists, and tables:
    Small avatar used in components.
    • Also used in the masthead component:
    Small avatar used in a masthead.
  2. Medium (md), 36px

  3. Large (lg), 72px

    • Used in cards.
    Large avatar used in a card.
  1. Extra large (xl), 128px

    • Used in profile displays.
    Extra large avatar used in a profile display.

Accessibility

For information regarding accessibility, visit the avatar accessibility tab.