--- id: Avatar section: components --- import '../components.css'; ## Elements
![Basic and bordered avatar.](./img/avatar-elements.svg)
1. **Image/graphic:** Visual representation of the user. If there is no custom image for a user, the default graphic will be shown. 1. **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](#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.](./img/avatar-usage-sm-components.svg)
- Also used in the masthead component:
![Small avatar used in a masthead.](./img/avatar-usage-sm-masthead.svg)
1. Medium (md), 36px 1. Large (lg), 72px - Used in cards.
![Large avatar used in a card.](./img/avatar-usage-lg.svg)
1. Extra large (xl), 128px - Used in profile displays.
![Extra large avatar used in a profile display.](./img/avatar-usage-xl.svg)
## Accessibility For information regarding accessibility, visit the [avatar accessibility](/components/avatar/accessibility) tab.