ExtendedReactionsOptions

fun ExtendedReactionsOptions(ownReactions: List<Reaction>, onReactionOptionSelected: (ReactionOptionItemState) -> Unit, modifier: Modifier = Modifier, cells: GridCells = GridCells.Fixed(DefaultNumberOfColumns), reactionTypes: Map<String, ReactionIcon> = ChatTheme.reactionIconFactory.createReactionIcons(), itemContent: @Composable LazyGridScope.(ReactionOptionItemState) -> Unit = { option -> DefaultExtendedReactionsItemContent( option = option, onReactionOptionSelected = onReactionOptionSelected, ) })

Displays all available reactions a user can set on a message.

Parameters

ownReactions

A list of user's own reactions.

onReactionOptionSelected

Handler that propagates click events on each item.

modifier

Modifier for styling.

cells

Describes the way cells are formed inside ExtendedReactionsOptions.

itemContent

Composable that allows the user to customize the individual items shown in ExtendedReactionsOptions. By default it shows individual reactions.