Description of icon
Flex UI
API Reference

MessageCanvasTray

A container used when the status of the channel is inactive. Can be themed with Theme.Chat.MessageCanvasTray in Theme.


Component children#

KeyComponentConditionAlignDescription
textReact componentMessage canvas tray template. Displays `MessageCanvasTrayContent` template
buttonstyled(button)Visible only if `showButton` prop is trueMessage canvas tray button to start a new chat. The button text is the `MessageCanvasTrayButton` template

Static Properties#

NameDescriptionType
Content

Dynamic content store

DynamicContentStore.<MessageCanvasTray.MessageCanvasTrayProps>
defaultProps

Default properties

MessageCanvasTray.MessageCanvasTrayProps

Component Properties

  • showButton?: boolean

    Display a ‘Start new chat’ button in the tray.

  • onButtonClick?: function

    A handler for a ‘Start new chat’ button click.

Need some help?