Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

3.0 KB
Raw Blame
---
title: Index List
description: "A numbered feature index draws in row by row, then a gradient band travels down to one highlighted row."
component: index-list
vibe: clean
length: 126
useWhen:
  - "A what's-inside beat that lists the main features of a release and lands on the one that matters most."
  - "A table-of-contents style recap near the end of a launch video, with a header and a feature count."
avoidWhen:
  - "The lines should step in like indented code rather than a ruled index — use `indent-steps`."
  - "You have three big numbered steps instead of a long list — use `three-steps`."
  - "The features should appear as streaming pills around a logo — use `feature-chips-flow`."
askedAs:
  - "numbered feature list"
  - "I want a numbered index drawing in with one row highlighted"
  - "whats inside beat listing release features landing on the key one"
  - "table of contents style list with a moving highlight band"
  - "numbered rows highlight"
  - "feature index list"
---

<ComponentPreview name="index-list" />

<InstallBlock name="index-list" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { IndexList } from "@/components/remocn/index-list";

const IndexListScene = () => (
  <IndexList
    items={["Scenes", "Captions", "Transitions", "Templates"]}
    title="What is inside 2.0"
    highlight={2}
  />
);

export const RemotionRoot = () => (
  <Composition
    id="IndexList"
    component={IndexListScene}
    durationInFrames={130}
    fps={30}
    width={1280}
    height={720}
  />
);
```

Hairline rules draw across and a numbered list rises row by row under a logo and title; a gradient band then wipes in and travels down to the `highlight` row, where it parks with an arrow while the other rows dim. Pass `items`, `title`, the zero-based `highlight` index, and your own `logo` node (the default is the Remocn wordmark). It ships light and dark.

<PropsTable title="Props"
  rows={[
    {
      name: "items",
      type: "string[]",
      default: "DEFAULT_ITEMS",
      description: "Row labels, numbered automatically; the row height shrinks as you add more.",
    },
    {
      name: "highlight",
      type: "number",
      default: "3",
      description: "Zero-based index of the row the gradient band lands on.",
    },
    {
      name: "title",
      type: "string",
      default: "\"What’s inside 3.0\"",
      description: "Header text shown beside the logo.",
    },
    {
      name: "logo",
      type: "React.ReactNode",
      description: "Header logo node; defaults to the Remocn wordmark, so pass your own.",
    },
    {
      name: "accent",
      type: "string",
      default: "\"#3B5BFD\"",
      description: "Color of the travelling highlight band.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Light or dark palette.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback speed multiplier for the whole timeline.",
    },
  ]}
/>