ReactionToggleParams

data class ReactionToggleParams(val type: String, val emoji: String?, val size: ReactionToggleSize, val checked: Boolean, val modifier: Modifier = Modifier, val onCheckedChange: (Boolean) -> Unit? = null)

Parameters for ChatComponentFactory.ReactionToggle.

Parameters

type

The string representation of the reaction.

emoji

The emoji character the type maps to, if any.

size

The size of the reaction toggle.

checked

Whether the toggle is checked.

modifier

Modifier for styling.

onCheckedChange

Callback when the checked state changes.

Constructors

Link copied to clipboard
constructor(type: String, emoji: String?, size: ReactionToggleSize, checked: Boolean, modifier: Modifier = Modifier, onCheckedChange: (Boolean) -> Unit? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onCheckedChange: (Boolean) -> Unit? = null
Link copied to clipboard
Link copied to clipboard