---
title: User Actions
description: The time, edit and copy controls beside a user message.
---

<Component path="perplexity/examples/perplexity-user-actions" />

<RegistryInstall name="perplexity-user-actions" />

Perplexity keeps these visible next to your own messages. They render before the pill, so pass them to the `actions` prop of a `PerplexityMessage` with `from="user"`. Edit and Copy are shadcn `Button`s with a `Tooltip`, and Copy switches to a check for a moment.

| Prop | Default | Description |
| --- | --- | --- |
| `text` | | The message text that Copy puts on the clipboard. |
| `timestamp` | | Shown before the buttons, like `09:18`. |
| `onEdit` | | Called when Edit is clicked. |

## Used in

**[Perplexity](/blocks/perplexity)**

A full recreation of a Perplexity thread with search steps, citations with hover cards and the composer.
