Description of icon
Flex UI
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
Rate this page

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.