Skip to content

TerminalCastPlayer

Replays a terminal trace: output events over time with play/pause, a scrubber, 1x/2x/4x speed and jump-to-end, honouring resizes. A downloaded asciinema cast renders the same way through castText. When the capture settled a screen, it is offered as the “Settled screen” view.

Source

import { TerminalCastPlayer } from "@flanksource/clicky-ui/data";
Events · Open in Storybook
Downloaded Cast · Open in Storybook
Auto Play · Open in Storybook

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
autoPlay boolean false Start playing on mount.
castText string — An asciinema v2 cast, such as a downloaded `.cast`. Give this or `events`.
className string — Classes applied to the player root.
emptyLabel string No terminal output recorded Shown when the session recorded no events.
events TerminalEvent[] — `terminal` trace records. Give this or `castText`.