Skip to content

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

2.7 KB
Raw Blame
---
title: Bracket Index
description: "Indexed bracket labels step through words, then the brackets close around the product name."
component: bracket-index
vibe: tech
length: 140
useWhen:
  - "A for-X, for-Y, for-Z beat that lists use cases before naming the product."
  - "A tech product line where bracketed index labels fit the brand."
  - "A reveal where a prefix phrase steps aside for the final name."
avoidWhen:
  - "You want full-frame word flashes instead of brackets — use `blink-cut`."
  - "Words should lock on mechanical reels — use `split-match`."
  - "One statement and a logo is enough — use `introducing`."
askedAs:
  - "for X for Y for Z intro"
  - "bracketed labels naming product"
  - "I want use cases listed in brackets then the product name"
  - "list who it is for before revealing the name"
  - "tech product line stepping through words"
  - "viewer sees brackets close around the brand"
---

<ComponentPreview name="bracket-index" />

<InstallBlock name="bracket-index" />

## Usage

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

const BracketIndexScene = () => (
  <BracketIndex
    prefix="Motion for"
    words={["launches", "changelogs", "demos"]}
    product="remocn"
  />
);

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

A prefix phrase sits on screen while brackets open around the first word and roll through each next word, then close around the product name as the prefix steps aside. Pass `prefix`, `words` and `product`; each extra word adds 38 frames. Ships light and dark.

<PropsTable title="Props"
  rows={[
    {
      name: "prefix",
      type: "string",
      default: "\"Motion for\"",
      description: "Text set before the brackets; it steps aside for the product.",
    },
    {
      name: "words",
      type: "string[]",
      default: "[\"launches\", \"changelogs\", \"demos\"]",
      description: "Words indexed inside the brackets, in order.",
    },
    {
      name: "product",
      type: "string",
      default: "\"remocn\"",
      description: "Final word the brackets close on.",
    },
    {
      name: "accent",
      type: "string",
      default: "\"#3B5BFD\"",
      description: "Accent colour for the mark and highlights; any CSS colour.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Dark or light palette and ground.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier for the whole timeline; 1 is normal speed.",
    },
  ]}
/>