AvatarStack

fun AvatarStack(commenters: List<RecentCommenter>, hasMore: Boolean = false, onCommenterClick: (RecentCommenter) -> Unit? = null, modifier: Modifier = Modifier)(source)

Renders an overlapping horizontal avatar stack of up to 3 recent commenters with an overflow indicator.

Useful for displaying social activity and discussion engagement directly on feature request cards.

Example Usage

AvatarStack(
commenters = item.recentCommenters,
hasMore = item.hasMoreCommenters,
onCommenterClick = { commenter ->
commenter.clerkUserId?.let { openProfile(it) }
}
)

Parameters

commenters

List of RecentCommenter objects representing participants.

hasMore

Whether additional commenters exist beyond the provided list.

onCommenterClick

Optional callback invoked with the clicked RecentCommenter.

modifier

Optional Modifier applied to the row layout.