TidalUI

Streaming terminal preview

Follow supplied streaming output in a bounded, readable terminal with pause and resume controls.

pro · Data · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/streaming-terminal

Import components/ui/tidal.css, components/ui/streaming-terminal.css. Wrap installed components in tidal-scope.

Preview

Streaming terminal component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/streaming-terminal.css";
import{TidalStreamingTerminal}from"./components/ui/streaming-terminal";
export default()=><div className="tidal-scope"><TidalStreamingTerminal following={false} lines={[{id:"example",text:"Demo"}]} onFollowingChange={() => {}} status={"error"} title={"Demo"}/></div>;

API and props

TidalStreamingTerminal.following (required)
boolean

Required following value accepted by this exported component.

TidalStreamingTerminal.lines (required)
ReadonlyArray<TidalTerminalLine>

Required lines value accepted by this exported component.

TidalStreamingTerminal.onFollowingChange (required)
(following: boolean) => void

Callback invoked when the following change interaction is proposed.

TidalStreamingTerminal.status (required)
TidalTerminalStatus

Required status value accepted by this exported component.

TidalStreamingTerminal.title (required)
ReactNode

Required title value accepted by this exported component.

TidalStreamingTerminal.actionProps
Partial<Record<Action, ActionProps>> | undefined

Optional action props value accepted by this exported component.

TidalStreamingTerminal.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalStreamingTerminal.headingLevel
"h2" | "h3" | "h4" | "h5" | undefined

Optional heading level value accepted by this exported component.

TidalStreamingTerminal.labels
Partial<{ idle: string; running: string; complete: string; error: string; copy: string; clear: string; cancel: string; following: string; resume: string; output: string; empty: string; invalid: string; truncated: (shown: number, total: number) => string; count: (total: number) => string; }> | undefined

Optional labels value accepted by this exported component.

TidalStreamingTerminal.maxHeight
number | undefined

Optional max height value accepted by this exported component.

TidalStreamingTerminal.maxVisibleLines
number | undefined

Optional max visible lines value accepted by this exported component.

TidalStreamingTerminal.onCancel
((event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the cancel interaction is proposed.

TidalStreamingTerminal.onClear
((event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the clear interaction is proposed.

TidalStreamingTerminal.onCopy
((text: string, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the copy interaction is proposed.

TidalStreamingTerminal.viewportProps
ViewportProps | undefined

Optional viewport props value accepted by this exported component.

TidalStreamingTerminal.viewportRef
Ref<HTMLDivElement> | undefined

Optional viewport ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas