MenuOptionItemParams

data class MenuOptionItemParams(val onClick: () -> Unit, val title: String, val titleColor: Color, val style: TextStyle, val leadingIcon: @Composable RowScope.() -> Unit, val modifier: Modifier = Modifier, val itemHeight: Dp = 56.dp, val verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, val horizontalArrangement: Arrangement.Horizontal = Arrangement.Start)

Parameters for ChatComponentFactory.MenuOptionItem.

Parameters

onClick

Action invoked when the item is clicked.

title

The title of the menu item.

titleColor

The color of the title.

style

The text style.

leadingIcon

The leading icon composable.

modifier

Modifier for styling.

itemHeight

The height of the item.

verticalAlignment

The vertical alignment.

horizontalArrangement

The horizontal arrangement.

Constructors

Link copied to clipboard
constructor(onClick: () -> Unit, title: String, titleColor: Color, style: TextStyle, leadingIcon: @Composable RowScope.() -> Unit, modifier: Modifier = Modifier, itemHeight: Dp = 56.dp, verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onClick: () -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard