# layout.terminal

A small agent terminal floating over an example app: the conversation and checks that produced it

Component: [`<Layout>`](https://www.prongs.dev/docs/components/layout.md) · Renders: `<div>` · Profile: [UI](https://www.prongs.dev/docs/intents/ui.md)

## Example

```tsx
<Layout intent="layout.terminal">
  …
</Layout>
```

## Choosing between neighbours

Find the row that describes your element, and use the intent on the right.

| If it is for… | Use |
|---|---|
| A small agent terminal floating over an example app: the conversation and checks that produced it | `layout.terminal` (this page) |
| A framed preview of the app itself | [`layout.window`](https://www.prongs.dev/docs/intents/layout/window.md) |
| An agent terminal floating over an example app (rather than [`layout.agent`](https://www.prongs.dev/docs/intents/layout/agent.md)) | `layout.terminal` (this page) |

## Connections

Declared in the registry, both directions. Where an intent is used in your own code is something check and the gallery see; this site has no app code.

- Built from: [`surface.overlay`](https://www.prongs.dev/docs/intents/ui.md#surface-overlay), [`arrange.stack`](https://www.prongs.dev/docs/intents/ui.md#arrange-stack)

## For registry authors

**Starter intents.** These are the intents `prongs add` puts in your registry, shown in this site’s theme. Yours are your own `registry.ts`: rename, restyle and add to them, and see them with `prongs add gallery`.

What this intent is built from and its entry in `components/prongs/registry.ts`. You only need this to change how it looks or to add an intent like it.

How layout.terminal resolves, and its definition

Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.

- [`surface.overlay`](https://www.prongs.dev/docs/intents/ui.md#surface-overlay) — Floats over a dimmed page and starts its own stack of surfaces

  ```
  surface-overlay m-auto rounded-lg border border-surface-border
  shadow-xl backdrop:bg-black/50
  ```

- [`arrange.stack`](https://www.prongs.dev/docs/intents/ui.md#arrange-stack) — Children in a column, free to shrink inside a row or grid

  ```
  flex min-w-0 flex-col
  ```

- `layout.terminal` (this page) — A small agent terminal floating over an example app: the conversation and checks that produced it

  ```
  relative z-30 m-3 h-80 overflow-hidden rounded-md border
  border-surface-border font-mono text-xs shadow-xl md:absolute
  md:h-72 md:right-5 md:bottom-5 md:m-0
  md:w-[min(26rem,calc(100%-2.5rem))] shadow-black/[0.06]
  dark:shadow-black/10
  ```

Final classes

```
surface-overlay backdrop:bg-black/50 flex min-w-0 flex-col
relative z-30 m-3 h-80 overflow-hidden rounded-md border
border-surface-border font-mono text-xs shadow-xl md:absolute
md:h-72 md:right-5 md:bottom-5 md:m-0
md:w-[min(26rem,calc(100%-2.5rem))] shadow-black/[0.06]
dark:shadow-black/10
```

Definition

```ts
'layout.terminal': {
  kind: 'semantic',
  description: 'A small agent terminal floating over an example app: the conversation and checks that produced it',
  refs: ['surface.overlay', 'arrange.stack'],
  binding: {
    classes: 'relative z-30 m-3 h-80 overflow-hidden rounded-md border border-surface-border font-mono text-xs shadow-xl md:absolute md:h-72 md:right-5 md:bottom-5 md:m-0 md:w-[min(26rem,calc(100%-2.5rem))] shadow-black/[0.06] dark:shadow-black/10',
  },
  notFor: [
    {
      context: 'a framed preview of the app itself',
      instead: 'layout.window',
    },
  ],
},
```
