Terminal

A simulated command-line terminal window with ANSI color parsing and streaming execution cursors.

The Terminal component renders interactive CLI command outputs, shell logs, and build outputs with full ANSI escape sequence coloring.

Terminal
$ pnpm build
> @celestia-project/ui:build
> tsup
✓ Build completed in 420ms

Usage

tsx
import { Terminal } from "@celestia-project/ui"
export function MyTerminal() {  const output = `$ pnpm build> @celestia-project/ui:build> tsup✓ Build completed in 420ms`
  return (    <Terminal      output={output}      className="w-full max-w-md"    />  )}

Props Reference

ComponentPropTypeDefaultDescription
Terminaloutputstring""ANSI text output from execution.
TerminalisStreamingbooleanfalseShows animated pulsing terminal cursor.
TerminalautoScrollbooleantrueAutomatically scrolls down as output streams.