TimelineMessageItem

fun TimelineMessageItem(message: UikitTimelineMessage, modifier: Modifier = Modifier, textBackgroundColor: Color = if (SendbirdUikitCompose.isDarkTheme) { MaterialTheme.colorScheme.surfaceTint.copy(alpha = SendbirdOpacity.LowOpacity) } else { MaterialTheme.colorScheme.surfaceTint.copy(alpha = SendbirdOpacity.MediumOpacity) }, textColor: Color = if (SendbirdUikitCompose.isDarkTheme) { MaterialTheme.colorScheme.onBackground.copy(alpha = SendbirdOpacity.MediumOpacity) } else { MaterialTheme.colorScheme.inverseOnSurface.copy(alpha = SendbirdOpacity.HighOpacity) }, textStyle: TextStyle = MaterialTheme.typography.labelSmall)

A Composable to display the UikitTimelineMessage item.

Since

1.0.0-beta.1

Parameters

message

The UikitTimelineMessage to display.

modifier

The modifier to be applied to the view.

textBackgroundColor

The background color of the text message.

textColor

The color of the text message.

textStyle

The style of the text message.