UserAvatarRow
fun UserAvatarRow(users: List<User>, modifier: Modifier = Modifier, maxAvatarCount: Int = 3, size: Dp = 20.dp, offset: Int = 7, shape: Shape = ChatTheme.shapes.avatar, textStyle: TextStyle = ChatTheme.typography.title3Bold, contentDescription: String? = null, initialsAvatarOffset: DpOffset = DpOffset(0.dp, 0.dp), onClick: () -> Unit? = null)
Represents the User avatar that's shown on the Messages screen or in headers of DMs.
Based on the state within the User, we either show an image or their initials.
Parameters
users
The list of users whose avatar we want to show.
modifier
Modifier for styling.
maxAvatarCount
The maximum count for displaying the avatar row.
size
The size of each user avatar.
offset
The offset of the
shape
The shape of the avatar.
textStyle
The TextStyle that will be used for the initials.
contentDescription
The content description of the avatar.
initialsAvatarOffset
The initials offset to apply to the avatar.
onClick
The handler when the user clicks on the avatar.