---
title: Window
description: The OpenCode terminal surface.
---

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

<RegistryInstall name="opencode-window" />

`OpencodeWindow` is a shadcn `Card` that paints the TUI background, sets the monospace font and a 13px type size with a 20px line. The other components space themselves in terminal cells, `ch` across and `lh` down, so put them inside a window or anything with the same font. It has no padding, so a session can split into a transcript and a sidebar. It accepts every `Card` prop.

## Used in

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

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