# Message Tools

The KendoReact Chat provides message tools that enable users to perform various actions on messages such as copy, reply, delete, and pin.

The Chat component supports three types of message tools:

* [Context Menu](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/messages/tools#context-menu)—Right-click actions available on any message
* [Toolbar Tools](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/messages/tools#toolbar-tools)—Button actions displayed under each message
* [File Actions](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/messages/tools#file-actions)—Actions available for file attachments in messages

> The message toolbar functionality introduced in v12.0.0 provides enhanced message-level actions and differs from the previous Chat toolbar implementation.

## Context Menu

The context menu actions are specific message actions that are available when a user right-clicks any message in the Chat.

Upon right-clicking a message, the context menu displays the available actions, allowing users to quickly perform the desired action without navigating away from the chat interface.

The default actions are **Copy** and **Reply**. However, you can extend them and add any other custom actions like Delete, Pin, Forward, and others by setting the [`messageContextMenuActions`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#messagecontextmenuactions) property of the Chat to a [MessageAction](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/messageaction) array. This provides a way to customize the user experience and add functionality that is specific to your application.

Upon selecting an action from the context menu, the [`onContextMenuAction`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#oncontextmenuaction) event is triggered, returning the selected [`MessageAction`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/messageaction) as an argument, allowing you to handle the action accordingly.

[Demo Source](https://demos.telerik.com/kendo-react-ui/conversational-ui/chat/messages/context-menu/source.txt)

## Toolbar Tools

The message toolbar actions are displayed as a set of buttons under each message. They provide quick access to common actions that can be performed on the message such as copy, forward, download, and others.

To customize the message toolbar actions, set the [`messageToolbarActions`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#messagetoolbaractions) property of the Chat to a [`MessageAction`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/messageaction) array.

Upon clicking any of the toolbar action buttons, the [`onToolbarAction`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#ontoolbaraction) event is triggered, returning the selected [`MessageAction`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/messageaction) as an argument. This allows you to handle the action accordingly.

[Demo Source](https://demos.telerik.com/kendo-react-ui/conversational-ui/chat/messages/toolbar/source.txt)

## File Actions

The file actions provide users with options to interact with file attachments in messages, such as downloading, previewing, sharing, or removing files.

To customize the file actions, set the [`fileActions`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#fileactions) property of the Chat to a [`MessageAction`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/messageaction) array.

When a user clicks any of the file action buttons, the [`onFileAction`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#onfileaction) event is triggered, returning the selected [`MessageAction`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/messageaction) along with the file information. This allows you to handle file-related operations accordingly.

[Demo Source](https://demos.telerik.com/kendo-react-ui/conversational-ui/chat/messages/file-actions/source.txt)

## Suggested Links

* [Disable the KendoReact Chat Context Menu](https://www.telerik.com/kendo-react-ui-develop/components/knowledge-base/chat-disable-context-menu)
* [Message Appearance](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/messages/appearance)
* [Message Persistence](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/messages/persistence)
* [Events Handling](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/events)
* [Chat API Reference](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api)
