ChatInput
An input for sending a message.
This component is data aware
Component
The ChatInput component is an input for sending messages to a chat.
API
Import
Props
Name | Type | Default | Description |
---|---|---|---|
onSendMessage | (input: SendMessageInput) => void | Callback for sending a message | |
onClose | () => void | Callback for canceling edit message | |
placeholder | string | Placeholder text for the input | |
disableMediaButton | boolean | false | If true, hides the media button for uploading files and adding gifs |
classNames | object | Specific class names to override nested components. Options are | |
chatId | string | If provided, handles typing indicator for the specified chat | |
isEditing | boolean | If true, showing editing UI |
Variations
Was this page helpful?