Skip to main content

Transaction Flow in One Button

A multi-step transaction flow compressed into a single animated button with progress states.

ButtonReactFramer Motion
CSSshadcnCustom CSS

Manual

Create a file and paste the following code into it.

components.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "new-york",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "",
    "css": "src/index.css",
    "baseColor": "neutral",
    "cssVariables": true,
    "prefix": ""
  },
  "iconLibrary": "lucide",
  "rtl": false,
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/cn",
    "ui": "@/components/ui",
    "lib": "@/lib",
    "hooks": "@/hooks"
  },
  "registries": {}
}

Update the import paths to match your project setup.

Similar components

Button Tilt

Gradient Party Button

Max

Animated Border Button

GitHub Stars Button

Resource details

PublishedFebruary 25, 2026
CategoryButton
ReactFramer Motion