MessageCanvasTray
A container used when the status of the channel is inactive Can be themed with [theme.Chat.MessageCanvasTray]{@link MessageCanvasTray.MessageCanvasTrayThemeProps}
Component children#
| Key | Component | Condition | Align | Description |
|---|---|---|---|---|
| text | React component | Message canvas tray template. Displays `MessageCanvasTrayContent` template | ||
| button | styled(button) | Visible only if `showButton` prop is true | Message canvas tray button to start a new chat. The button text is the `MessageCanvasTrayButton` template |
Static Properties#
| Name | Description | Type |
|---|---|---|
| Content | Dynamic content store | DynamicContentStore.<MessageCanvasTray.MessageCanvasTrayProps> |
| defaultProps | Default properties | MessageCanvasTray.MessageCanvasTrayProps |
Component Properties
showButton?: booleanDisplay a ‘Start new chat’ button in the tray.
onButtonClick?: functionA handler for a ‘Start new chat’ button click.