MessageInput

fun MessageInput(inputValue: String, onInputValueChange: (String) -> Unit, modifier: Modifier = Modifier, messageInputMode: MessageInputMode = MessageInputMode.Default, isActionButtonShown: Boolean = true, enabled: Boolean = true, onEditModeSaveClick: (messageId: Long) -> Unit = {}, onEditModeCancelClick: () -> Unit = {}, onMenuClick: () -> Unit = {}, onActionClick: () -> Unit = {})

Represents the message input component.

Since

1.0.0-beta.1

Parameters

inputValue

The text of the input.

onInputValueChange

The handler for when the input value changes.

modifier

The modifier to be applied to the view.

messageInputMode

The MessageInputMode of the input.

isActionButtonShown

The visibility of the action button.

enabled

The enabled state of the input.

onEditModeSaveClick

The handler for when the edit mode save button is clicked.

onEditModeCancelClick

The handler for when the edit mode cancel button is clicked.

onMenuClick

The handler for when the menu button is clicked.

onActionClick

The handler for when the action button is clicked.

See also