reelcn
GitHubBack to landing

Captions: subtitle bar

Broadcast-style subtitles on a translucent bar, readable over anything.

A preset of Captions.

CaptionsSubtitleBar, defaults
CaptionsSubtitleBar, defaults thumbnail, 16:9

Installation

npx shadcn add https://www.reelcn.dev/r/captions-subtitle-bar.json

Files land in src/reelcn/ with the items it builds on.

Usage

<CaptionsSubtitleBar captions={captions} position="bottom" />

Props

PropTypeDescription
styleCSSProperties
classNamestring
captions*Caption[]Word-level captions, as `@remotion/captions` defines them. `pnpm reelcn-transcribe` writes this shape.
sizenumberFont size in design units; long pages shrink from here.
colorstring
pageMsnumberHow much speech goes on one page, in milliseconds. Lower means fewer words at a time.
maxWordsnumberHard cap on words per page; long pages are split.
emphasizestring[]Words painted in the emphasis color. Case and punctuation are ignored.
position"auto" | "top" | "middle" | "bottom"auto sits above the platform UI in portrait and in the lower third elsewhere.
activeColorstring
emphasisColorstring
backgroundstring

Built from

Use

  • Long-form video, webinars and anything with a wide audience

Guides

Components take their colors from a theme, their timing from motion props and their layout from the canvas.

Source

registry/items/captions-subtitle-bar.tsx
/**
 * @title Captions: Subtitle Bar
 * @category social
 * @description Broadcast-style subtitles on a translucent bar, readable over anything.
 * @duration data-driven
 * @preset captions
 * @use Long-form video, webinars and anything with a wide audience
 * @tags captions, subtitles, broadcast, accessibility
 * @example
 * <CaptionsSubtitleBar captions={captions} position="bottom" />
 */
import { Captions, type CaptionsProps } from "./captions";

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

export function CaptionsSubtitleBar(props: CaptionsSubtitleBarProps) {
  return <Captions {...props} variant="subtitle-bar" />;
}

On this page