UserAvatar

fun UserAvatar(user: User, modifier: Modifier = Modifier, showIndicator: Boolean = false, showBorder: Boolean = false)

The default user avatar content.

This component displays the user's uploaded image or falls back to their initials if no image is available. It is commonly used in message lists, headers, and user profiles.

Parameters

user

The user whose avatar will be displayed.

showIndicator

Whether to overlay a status indicator to show whether the user is online.

showBorder

Whether to draw a border around the avatar to provide contrast against the background.