---
title: "Text Cascade"
description: "Free React text cascade: when the text changes, old letters drop away as new ones roll in, left to right. Reduced-motion safe. Framer Motion, shadcn install."
category: "Components"
parent: "https://beui.dev/components/motion/text-animation"
publishedAt: "2026-05-17"
updatedAt: "2026-11-24"
documentation: "https://beui.dev/components/motion/text-animation/cascade"
markdown: "https://beui.dev/components/motion/text-animation/cascade.md"
license: "MIT"
---

# Text Cascade

> Free React text cascade: when the text changes, old letters drop away as new ones roll in, left to right. Reduced-motion safe. Framer Motion, shadcn install.

## Install

```bash
npx shadcn@latest add @beui/text-cascade
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

### Text Cascade usage

Letter-by-letter slot roll for standalone text: old letters drop away as new ones land, left to right.

```tsx
"use client";

import { useEffect, useState } from "react";
import { TextCascade } from "@/components/motion/text-cascade";

const PHRASES = ["Install skills", "Open settings", "Ship updates"];

export function TextCascadePreview() {
  const [phrase, setPhrase] = useState(0);

  useEffect(() => {
    const id = window.setInterval(() => {
      setPhrase((p) => (p + 1) % PHRASES.length);
    }, 2400);
    return () => window.clearInterval(id);
  }, []);

  return (
    <div className="flex w-full justify-center">
      <p className="text-lg font-medium text-foreground">
        <TextCascade text={PHRASES[phrase] ?? PHRASES[0]} />
      </p>
    </div>
  );
}
```

## API Reference

### TextCascade

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | `string` | — | Yes | Current text. Changing it cascades the letters to the new value. |
| `className` | `string` | — | No | Classes merged onto the root element. |

## More in Text Animation

- [Text Scramble](https://beui.dev/components/motion/text-animation/text-scramble.md)
- [Dia Text Animation](https://beui.dev/components/motion/text-animation/chromatic-reveal.md)
- [Text Reveal](https://beui.dev/components/motion/text-animation/reveal.md)
- [Text Shimmer](https://beui.dev/components/motion/text-animation/shimmer.md)

## Source

- Registry detail: https://beui.dev/r/text-cascade
- Raw source: https://beui.dev/r/text-cascade/raw
- GitHub: https://github.com/starc007/ui-components
