Description of icon
API Reference

MessageInput

This is a container for MessageInputArea and SendButton. Can be themed with Theme.Chat.MessageInput in Theme.


Component children#

KeyComponentConditionAlignDescription
textareastyled(div)
Wrapper for the input area (MessageInputArea component) and the send button

Static Properties#

NameTypeDescription
ContentDynamicContentStore<MessageInput.MessageInputChildrenProps, MessageInputChildrenKeys>

Dynamic content store

defaultPropsMessageInput.MessageInputProps

Default properties

Component Properties#

NameTypeDescriptionOptionalDefault
theme.MessageInputMessageInputThemeProps

theme

Yes
areaStyleInputAreaStyle

Visual style of the text input element.

YesBubble
disabledReasonstring

A reason on why MessageInput is disabled.

Yes
returnKeySendsMessageboolean

Whether pressing the return key should send a message.

Yestrue
charLimitnumber

Identifies character limit for a single message.

No
childrenDynamicComponentChildren<MessageInput.MessageInputChildrenProps>

children

Yes
sendButtonAriaPropsAriaProps

SendButton aria props

Yes
textAreaAriaPropsAriaProps

TextArea aria props

Yes