---
url: https://talkjs.com/docs/UI_Components/JavaScript/Classic/Themes/Components/ReferencedMessage
---

# ReferencedMessage

Ask a question Copy for LLM [View as Markdown](/docs/UI_Components/JavaScript/Classic/Themes/Components/ReferencedMessage.md)
The `ReferencedMessage` component is a subcomponent that is part of all preset themes. It is used to render
the contents of the message you replied to.

## Props

Our preset themes pass the following props to the `ReferencedMessage` component. You can change the props it receives by updating the place it is invoked inside `MessageBody`.

| Name | Type | Description |
| --- | --- | --- |
| **body** | [Message](/docs/UI_Components/JavaScript/Classic/Themes/Components/Shared_Types/#message).body | The body of the message |
| **sender** | [User](/docs/UI_Components/JavaScript/Classic/Themes/Components/Shared_Types/#user) | The sender of the message |

## Available system components

All preset themes render the `ReferencedMessage` inside the [`MessageBody`](/docs/UI_Components/JavaScript/Classic/Themes/Components/MessageBody/) which is subsequently rendered inside the [`UserMessage`](/docs/UI_Components/JavaScript/Classic/Themes/Components/UserMessage/) and [`SystemMessage`](/docs/UI_Components/JavaScript/Classic/Themes/Components/SystemMessage/) components.
Look at their documentation to see the available system components.