Social
Social
Captions: Word Stack
Words stacked one per line, with the spoken word growing and lifting.
Install
Usage
<CaptionsWordStack captions={captions} maxWords={3} />Props
| Name | Type | Default | Description |
|---|---|---|---|
style? | CSSProperties | — | |
className? | string | — | |
captions | Caption[] | — | Word-level captions, as `@remotion/captions` defines them. `pnpm reelcn-transcribe` writes this shape. |
size? | number | — | Font size in design units; long pages shrink from here. |
color? | string | — | |
pageMs? | number | — | How much speech goes on one page, in milliseconds. Lower means fewer words at a time. |
maxWords? | number | — | Hard 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
- Vertical video where a wide caption block would crowd the frame
Dependencies
Source
registry/items/captions-word-stack.tsx
/**
* @title Captions: Word Stack
* @category social
* @description Words stacked one per line, with the spoken word growing and lifting.
* @duration data-driven
* @preset captions
* @use Vertical video where a wide caption block would crowd the frame
* @tags captions, vertical, stack, shorts
* @example
* <CaptionsWordStack captions={captions} maxWords={3} />
*/
import { Captions, type CaptionsProps } from "./captions";
export type CaptionsWordStackProps = Omit<CaptionsProps, "variant">;
export function CaptionsWordStack(props: CaptionsWordStackProps) {
return <Captions {...props} variant="word-stack" />;
}