MessageBody

The MessageBody component is a subcomponent that is part of all preset themes. It is used to render the contents of messages.

Props

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.

NameTypeDescription
bodyMessage.bodyThe body of the message
hasReferencedMessagebooleanWhether this message is a reply to another message
timestampnumberTime the message was sent
floatTimestamp"auto" | nilWhether 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
showStatusbooleanWhether to show the message delivered status ticks
isLongEmailMessagebooleanWhether this message is a multi-line message sent as an email reply
darkenMenuAreabooleanWhether to darken the area under the action menu on thumbnails

Available system components

All preset themes render the MessageBody inside the UserMessage and SystemMessage components. Look at their documentation to see the available system components.