Code Accordion
Code Accordion for Remotion.
SceneScenes
code-accordion30fps · 960×540
Install
$ npx remotion-ui@latest add code-accordionCode Accordion.
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, plus copied source for timing, layout, colors, and typography.
- Rule: do not import this component from the
remotion-uinpm package; it is copied into your project.
Usage
Example
import { CodeAccordion } from "@/remotion/scenes/code-accordion";
<CodeAccordion activeIndex={1} />API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| sections | AccordionSection[] | - | Collapsible code sections. |
| activeIndex | number | 1 | Section expanded during the scene. |