Skip to content

Properties

Avatar properties

PropertyTypeDescription
sizesmall
medium
large
x-large
(optional) Size of the Avatar. Options: small | medium | large | x-large. Defaults to medium.
childrenReact.ReactNode(optional) Content of the component.
altstring(optional) Used in combination with src to provide an alt attribute for the img element.
srcstring(optional) Specifies the path to the image.
imgPropsImgProps(optional) Image properties applied to the img element if the component is used to display an image.
variantprimary
secondary
tertiary
(optional) Override the variant of the component. Options: primary | secondary | tertiary. Defaults to primary.
hasLabelboolean(optional) If aria-hidden is set to true or if a label is given, typical inside a table or dl (definition list), then you can disable Avatar.Group as a dependent of Avatar. Use true to omit the Avatar group required: warning.
backgroundColorstring(optional) Define a custom background color, instead of a variant. Use a Eufemia color.
colorstring(optional) Define a custom color to compliment the backgroundColor. Use a Eufemia color.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.
SpaceVarious(optional) Spacing properties like top or bottom are supported.

Avatar.Group properties

PropertyTypeDescription
labelstring(required) The label description of the group of avatars.
sizesmall
medium
large
x-large
(optional) Size of the Avatars, and "elements hidden text (+x)". Options: small | medium | large | x-large. Defaults to medium.
variantprimary
secondary
tertiary
(optional) Override the variant of the Avatars. Options: primary | secondary | tertiary. Defaults to primary.
maxElementsnumber(optional) Number of max displayed elements, including the "elements hidden text (+x)". Defaults to 4.
childrenReact.ReactNode(optional) The Avatars to group.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.
SpaceVarious(optional) Spacing properties like top or bottom are supported.