Description of icon
Flex UI
API Reference

MessageInputV2

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


Component children#

KeyComponentConditionAlignDescription
textareastyled(div)
Wrapper for the input area MessageInputArea component
actionsstyled(div)
A toolbar of message related action buttons

Static Properties#

NameTypeDescription
ContentDynamicContentStore<MessageInputV2Props, MessageInputV2ChildrenKeys>

Dynamic content store

defaultPropsMessageInputProps

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
hideSendButtonboolean

Whether the send button should be hidden

Yes
rows1 | 2 | 3 | 4 | 5 | 6

Set the row height of message input. Range from 1 to 6

Yes1
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.