sidiora-labs

Text Cascade

Text

About

A text component that cascades its letters in one by one with a left-to-right stagger whenever the string changes, for rotating headlines or status labels.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Cascade to your project and fits it to your theme.

Code

How Text Cascade is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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

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

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>
  );
}

export default TextCascadePreview;

More by sidiora-labs

View all
  • Color List

    Color List

    23
  • Icon Accordion

    Icon Accordion

    23
  • Auth Drawer

    Auth Drawer

    22
  • Expandable Tabs

    Expandable Tabs

    20
  • Preview Rail

    Preview Rail

    19
  • Inline Slider

    Inline Slider

    14
  • Tilt Card

    Tilt Card

    13
  • Morph Confirm

    Morph Confirm

    13

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    134
  • Blur Reveal

    Blur Reveal

    395
  • Reveal Text

    Reveal Text

    165
  • Scroll Fill Headline

    Scroll Fill Headline

    66
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    14
  • Text Reveal

    Text Reveal

    405
  • Motion Blur Text

    Motion Blur Text

    48
  • Liquid Text

    Liquid Text

    277