layout.terminal

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

Component

Renders

<div>

Profile

Example

Preview

One

Two

Three

<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

    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
  • An agent terminal floating over an example app

    rather than layout.agent
    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.

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

    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

    Children in a column, free to shrink inside a row or grid

    flex min-w-0 flex-col
  • layout.terminal

    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',
},
],
},