Skip to content
AI & AgentsPro

Terminal Output

The result of a code-execution tool call: command, exit code, run time, stdout and stderr.

Usage

pnpm vitest run tabsexit 03.8 s

RUN v3.2.4 packages/react

✓ tabs.test.tsx (6 tests) 41 ms

✓ tabs-vertical.test.tsx (4 tests) 28 ms

✓ roving-focus.test.ts (3 tests) 9 ms

Test Files 3 passed (3)

Tests 13 passed (13)

Duration 3.8 s

Installation

bash
npm install @wunderui/react

Then import what you need:

tsx
import { TerminalOutput } from "@wunderui/react"

In context

How the component is used inside real screens — the same compositions as the Usage section of the Figma page.

Test run after the edit

The run_tests call that followed: one failing test, with the failure on stderr.

run_tests

Ran the Tabs tests

Failed
pnpm vitest run tabsexit 14.1 s

RUN v3.2.4 packages/react

✓ tabs.test.tsx (6 tests) 41 ms

× tabs-vertical.test.tsx (4 tests | 1 failed) 33 ms

→ arrow keys move focus in vertical mode

✓ roving-focus.test.ts (3 tests) 9 ms

Test Files 1 failed | 2 passed (3)

Tests 1 failed | 12 passed (13)

API Reference

PropTypeDefault
commandReactNode—
exitCodenumberrunning (no badge)
durationReactNode—
stdout / stderrArray<string | { text: string; tone?: "default" | "muted" | "success" | "error" }>—
defaultStream"stdout" | "stderr""stdout"
maxHeightnumber280