Products · Components

Avatar

A person's photo in a circle, or their initials when there's no photo.

Without a photo, or when the photo doesn't load, it shows the initials of name: "Aminata Kamara" becomes AK.

Children: Nothing

Example

The Avatar component
view.dml
<View direction="row" gap="medium" align="center">
  <Avatar name="Aminata Kamara" image="statics/photo.jpg" size="large" />
  <Avatar name="Mohamed Sesay" size="large" />
  <Avatar name="Fatmata Conteh" />
</View>

Props

PropTypeWhat it is
namestringThe person's name, which screen readers say.
imagestringThe person's photo. It takes the same addresses as an Image's src.
sizesizeDefault: medium.

Events

None.

Keep reading

On this page