MessageComposer
Default MessageComposer component that relies on MessageComposerViewModel to handle data and communicate various events.
Parameters
The ViewModel that provides pieces of data to show in the composer, like the currently selected integration data or the user input. It also handles sending messages.
Modifier for styling.
If the attachment picker is visible or not.
Handler when the user sends a message. By default it delegates this to the ViewModel, but the user can override if they want more custom behavior.
Semantic / accessibility label for onSendMessage when sending a new message.
Semantic / accessibility label for onSendMessage when saving an edit.
Handler for the default Attachments integration.
Semantic / accessibility label for onAttachmentsClick.
Handler when the input field value changes.
Handler when the user taps on the cancel/delete attachment action.
Handler for the cancel button on Message actions, such as Edit and Reply.
Handler when the user taps on a link preview.
Handler when the user taps on the cancel link preview.
Handler when the user taps on a user suggestion item.
Handler for every tap on a command suggestion item, including taps on disabled items. The default emits MessageComposerViewEvent.CommandUnavailable on MessageComposerViewModel.events when the command is not available for the current action; overrides replace that behavior and become responsible for their own filtering and feedback.
Handler when the "Also send to channel" checkbox is changed.
Called when the user taps the dismiss button on the active command chip.
The actions that can be performed on an audio recording.
Customizable composable that represents the input field for the composer, MessageInput by default.
Clean version of the MessageComposer that doesn't rely on ViewModels, so the user can provide a manual way to handle and represent data and various operations.
Parameters
The state of the message input.
Handler when the user wants to send a message.
Semantic / accessibility label for onSendMessage when sending a new message.
Semantic / accessibility label for onSendMessage when saving an edit.
Modifier for styling.
If the attachment picker is visible or not.
Handler for the default Attachments integration.
Semantic / accessibility label for onAttachmentsClick.
Handler when the input field value changes.
Handler when the user taps on the cancel/delete attachment action.
Handler for the cancel button on Message actions, such as Edit and Reply.
Handler when the user taps on a link preview.
Handler when the user taps on the cancel link preview.
Handler when the user taps on a user suggestion item.
Handler when the user taps on a command suggestion item, including taps on disabled items.
Handler when the "Also send to channel" checkbox is changed.
Called when the user taps the dismiss button on the active command chip.
The actions that can be performed on an audio recording.
Customizable composable that represents the input field for the composer, MessageInput by default.