Terminal Output
The result of a code-execution tool call: command, exit code, run time, stdout and stderr.
Usage
pnpm vitest run tabs3.8 sRUN 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
npm install @wunderui/reactThen import what you need:
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_testsRan the Tabs tests
pnpm vitest run tabs4.1 sRUN 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
| Prop | Type | Default |
|---|---|---|
| command | ReactNode | — |
| exitCode | number | running (no badge) |
| duration | ReactNode | — |
| stdout / stderr | Array<string | { text: string; tone?: "default" | "muted" | "success" | "error" }> | — |
| defaultStream | "stdout" | "stderr" | "stdout" |
| maxHeight | number | 280 |