---
title: Message
description: User prompts and assistant replies in the OpenCode transcript.
---

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

<RegistryInstall name="opencode-message" />

`from="user"` renders the prompt on a raised panel with a blue rule on the left. Assistant replies, the default, are indented plain text. Markup inside a reply takes the TUI's markdown colors: headings and `strong` in bold orange, `code` in green, and list items get an orange dash.

Space the transcript one line apart, like the terminal, with `gap-[1lh]` on the parent.

| Prop | Default | Description |
| --- | --- | --- |
| `from` | `assistant` | `user` or `assistant`. |
| `search` | | Rendered above an assistant reply, usually `OpencodeSources`. |
| `actions` | | Rendered below an assistant reply. |

## Used in

**[OpenCode](/blocks/opencode)**

A recreation of an OpenCode terminal session with a transcript, the prompt and the sidebar.
