Saurabh

Action Swap Cascade

Buttons 18

About

Animated button whose label swaps letter-by-letter — the old text's characters roll away as the new ones drop in, left to right — ideal for copy/copied and other stateful action toggles.

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

Code

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

Usage.tsx

"use client";

import { ActionSwapCascadeButton } from "@/components/ui/action-swap-cascade";

const CTA_ITEMS = [
  { id: "copy", label: "Copy link", ariaLabel: "Copy link" },
  { id: "copied", label: "Copied!", ariaLabel: "Copied" },
];

export default function ActionSwapCascadePreview() {
  return (
    <div className="flex w-full justify-center">
      <ActionSwapCascadeButton items={CTA_ITEMS} variant="primary" />
    </div>
  );
}

More by Saurabh

View all
  • BeUI Tilt Card

    BeUI Tilt Card

    394
  • BeUI Expandable Tabs

    BeUI Expandable Tabs

    383
  • Animated Sidebar

    Animated Sidebar

    321
  • BeUI File Upload

    BeUI File Upload

    314
  • Loader

    Loader

    225
  • BeUI Bouncy Accordion

    BeUI Bouncy Accordion

    225
  • BeUI Expanable Action Bar

    BeUI Expanable Action Bar

    216
  • BeUI Create Menu

    BeUI Create Menu

    209

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113