Component libraryStreaming terminal
Streaming terminal
ProFollow supplied streaming output in a bounded, readable terminal with pause and resume controls.
npx shadcn@latest add @tidal-pro/streaming-terminalInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/streaming-terminal.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Consumer-owned unique log lines, plain text, optional timestamps and info/success/warning/error levels. Required controlled idle/running/complete/error status and following value. The viewer renders the latest maxVisibleLines (default 300, 1–1000) with an explicit truncation notice; accepts at most 5000 supplied lines and 2 million text characters. Following scrolls only the local viewport; manual upward scrolling proposes pause, and Resume following returns to the latest line. Optional Copy receives the entire supplied plain-text transcript, Clear and Cancel are consumer callbacks; Cancel is shown only while running. Caller-first native handlers, disabled state, owned button/log semantics, native root/viewport/action refs with React 19 cleanup, bounded maxHeight 160–720, h2-h5 heading levels, localized labels/counts, text-safe rendering, narrow/RTL layouts and reduced motion are supported. No process, connection, request, execution or persistence occurs. The demo replays explicit sample lines on a local timer and supports copying those sample lines.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.