---
title: Actions
description: The action bar under an answer, with the sources count.
---

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

<RegistryInstall name="perplexity-actions" />

Every action is a ghost shadcn `Button` with a shadcn `Tooltip`. Rewrite opens a shadcn `Popover` with the [Rewrite Panel](/components/perplexity/rewrite-panel). More opens a shadcn `DropdownMenu` with Download and a Rewrite submenu that holds the same panel. Copy writes `text` to the clipboard and shows a check for 1.5 seconds. When you pass `sources`, a static [`PerplexitySourcesSummary`](/components/perplexity/sources-summary) sits after Rewrite.

| Prop | Default | Description |
| --- | --- | --- |
| `text` | | The answer text Copy writes to the clipboard. |
| `sources` | | Shows the stacked favicons and the count. |
| `models` | `PERPLEXITY_MODELS` | The model list of the Rewrite panel. |
| `onShare`, `onDownload` | | Left-side actions. |
| `onRewrite` | | Called with `{ mode }` when Rewrite is pressed in the panel. |
| `onGoodResponse`, `onBadResponse`, `onMore` | | Right-side actions. |

## Used in

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

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