Elements
- Image/graphic: Visual representation of the user. If there is no custom image for a user, the default graphic will be shown.
- 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:
Small (sm), 24px
- Default size.
- Used in accordions, data lists, and tables:
- Also used in the masthead component:
Medium (md), 36px
Large (lg), 72px
- Used in cards.
Extra large (xl), 128px
- Used in profile displays.
Accessibility
For information regarding accessibility, visit the avatar accessibility tab.