reelcn
Social

Social

Captions: Highlight Box

A marker block travels word by word, like a highlighter following the speech.

Install

Usage

<CaptionsHighlightBox captions={captions} emphasize={["never"]} />

Props

NameTypeDefaultDescription
style?CSSProperties
className?string
captionsCaption[]Word-level captions, as `@remotion/captions` defines them. `pnpm reelcn-transcribe` writes this shape.
size?numberFont size in design units; long pages shrink from here.
color?string
pageMs?numberHow much speech goes on one page, in milliseconds. Lower means fewer words at a time.
maxWords?numberHard cap on words per page; long pages are split.
emphasize?string[]Words painted in the emphasis color. Case and punctuation are ignored.
position?"auto" | "top" | "bottom" | "middle"`auto` sits above the platform UI in portrait and in the lower third elsewhere.
activeColor?string
emphasisColor?string
background?string

Use

  • Explainers and teaching clips where the key word should be unmissable

Dependencies

Source

registry/items/captions-highlight-box.tsx
/**
 * @title Captions: Highlight Box
 * @category social
 * @description A marker block travels word by word, like a highlighter following the speech.
 * @duration data-driven
 * @preset captions
 * @use Explainers and teaching clips where the key word should be unmissable
 * @tags captions, highlight, marker, explainer
 * @example
 * <CaptionsHighlightBox captions={captions} emphasize={["never"]} />
 */
import { Captions, type CaptionsProps } from "./captions";

export type CaptionsHighlightBoxProps = Omit<CaptionsProps, "variant">;

export function CaptionsHighlightBox(props: CaptionsHighlightBoxProps) {
  return <Captions {...props} variant="highlight-box" />;
}

Related