Avatar
Last update: 2.1.0 (30/01/2024)
Last updated
Was this helpful?
Last update: 2.1.0 (30/01/2024)
Last updated
Was this helpful?
The Avatar component builds upon the component, appearing as a round image with a custom icon placeholder.
variant
FillVariant
Defines the fill variant for this avatar. Defaults to theme default.
size
ComponentSize
Defines the size of this avatar. Defaults to theme default.
outline
boolean
Whether to render an outline in the placeholder.
secondaryIcon
ReactNode
An optional secondary icon to display near the avatar.
secondaryIconProps
Props to apply to the secondary icon, if it exists.
spanStyle
CSSProperties
Optional styles to pass to the containing span component.
2.1.0:
Removed placeholderColor
prop; use color
instead.
Added size
, outline
, spanStyle
, secondaryIcon
and secondaryIconProps
props.
Extends .