Social
Social
Captions: Boxed
Each word in its own rounded chip, with the spoken chip filled in the accent color.
Install
Usage
<CaptionsBoxed captions={captions} />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
- Busy footage where plain text would get lost
Dependencies
Source
registry/items/captions-boxed.tsx
/**
* @title Captions: Boxed
* @category social
* @description Each word in its own rounded chip, with the spoken chip filled in the accent color.
* @duration data-driven
* @preset captions
* @use Busy footage where plain text would get lost
* @tags captions, chips, contrast
* @example
* <CaptionsBoxed captions={captions} />
*/
import { Captions, type CaptionsProps } from "./captions";
export type CaptionsBoxedProps = Omit<CaptionsProps, "variant">;
export function CaptionsBoxed(props: CaptionsBoxedProps) {
return <Captions {...props} variant="boxed" />;
}