CaptionConfig interface exported
Last updated: 2026-03-05T20:47:10.119Z
Metrics
LOC: 8
Complexity: 1
Params: 0
Signature
interface CaptionConfig
Summary
Configuration for the caption step action. Caption is not an "effect" applied on a target element — it is its own step type that shows a floating subtitle during replay.
Source Code
export interface CaptionConfig {
/** Subtitle text to display */
text: string;
/** Screen position of the caption (default: "bottom") */
position?: "top" | "middle" | "bottom";
/** Display duration in ms (default: 3000) */
duration?: number;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| parseFlowScript | uses |
| ReplaySpeed | uses |
| injectStyles | uses |