Saurabh

Action Swap Cascade

Buttons 9

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

    367
  • BeUI Expandable Tabs

    BeUI Expandable Tabs

    342
  • BeUI File Upload

    BeUI File Upload

    289
  • BeUI Bouncy Accordion

    BeUI Bouncy Accordion

    200
  • BeUI Create Menu

    BeUI Create Menu

    199
  • BeUI Expanable Action Bar

    BeUI Expanable Action Bar

    182
  • Loader

    Loader

    173
  • BeUI OTP Input

    BeUI OTP Input

    166

More in Buttons

View all
  • Button

    Button

    14
  • Texture Button

    Texture Button

    92
  • Button

    Button

    63
  • Button

    Button

    34
  • Button Save

    Button Save

    46
  • Button

    Button

  • App Store Button

    App Store Button

    453
  • Notification Button

    Notification Button

    103