MessageBody
The MessageBody
component is a subcomponent that is part of all preset themes. It is used to render the contents of messages.
Our preset themes pass the following props to the MessageBody
component. You can change the props it receives by updating the places in the theme where the component is invoked.
Name | Type | Description |
---|---|---|
body | Message.body | The body of the message |
hasReferencedMessage | boolean | Whether this message is a reply to another message |
timestamp | number | Time the message was sent |
floatTimestamp | "auto" | nil | Whether the message timestamp should float or not. If set to "never", the message text renders as a block, so the timestamp doesn't float at the same height. If set to any other value or omitted, the timestamp will float on the right |
showStatus | boolean | Whether to show the message delivered status ticks |
isLongEmailMessage | boolean | Whether this message is a multi-line message sent as an email reply |
darkenMenuArea | boolean | Whether to darken the area under the action menu on thumbnails |
All preset themes render the MessageBody
inside the UserMessage
and SystemMessage
components. Look at their documentation to see the available system components.