RemotionUI

Code Accordion

Stepped walkthrough where each section opens, writes its code, and is checked off.

SceneScenes

code-accordion30fps · 960×540
Install
$ npx remotion-ui@latest add code-accordion

Steps play in order: a section opens, writes its code, holds, then closes with a check as the next one takes over. Pass activeIndex to pin a single step open instead of walking the list.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/scenes/code-accordion
  • Use when: full-frame scenes, overlays, cards, and reusable video sections.
  • Customize: sections, activeIndex, title, holdSeconds, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { CodeAccordion } from "@/remotion/scenes/code-accordion"; <CodeAccordion sections={sections} />

API Reference

PropTypeDescription
sectionsAccordionSection[]Steps played in order; each has a title, code, and optional meta.
activeIndexnumberPins one step open instead of walking the list.
titlestringLabel above the steps.
holdSecondsnumberSeconds an opened step is held before it closes.
accentColorstringChevron, fill and glow color.
theme"dark" | "light"Panel palette.
speednumberAnimation speed multiplier.

Related