MentionSuggestionItem

fun MentionSuggestionItem(user: User, onMentionSelected: (User) -> Unit, modifier: Modifier = Modifier, leadingContent: @Composable RowScope.(User) -> Unit = { DefaultMentionSuggestionItemLeadingContent(user = it) }, centerContent: @Composable RowScope.(User) -> Unit = { DefaultMentionSuggestionItemCenterContent(user = it) }, trailingContent: @Composable RowScope.(User) -> Unit = { DefaultMentionSuggestionItemTrailingContent() })

Represents the mention suggestion item in the mention suggestion list popup.

Parameters

user

The user that will be used to autocomplete the mention.

modifier

Modifier for styling.

onMentionSelected

Handler when the user taps on an item.

leadingContent

Customizable composable function that represents the leading content of a mention item.

centerContent

Customizable composable function that represents the center content of a mention item.

trailingContent

Customizable composable function that represents the trailing content of the a mention item.