---
title: Message
description: A user pill or an assistant answer with search and action slots.
---

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

<RegistryInstall name="perplexity-message" />

User turns sit in a gray pill aligned to the end. Assistant answers use Perplexity's serif at 16px. Assistant turns stack the `search` slot, the answer and the `actions` slot, capped at Perplexity's 42rem reading width.

| Prop | Default | Description |
| --- | --- | --- |
| `from` | | `"user"` or `"assistant"`. |
| `search` | | Rendered above the answer, usually a `PerplexitySearch`. |
| `actions` | | Below an answer, usually `PerplexityActions`. On a user turn it sits before the pill, usually `PerplexityUserActions`. |

## Used in

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

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