FreeWeb
Grey 3D button with hover effect by cssbuttons-io
- 386386 downloads
- 243243 likes
- 153153 saves
- Claude Code
- Codex
- Cursor
- and 3 more
Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans
Use this resource to change a label on hover or click
New
Free
In a terminal, from the folder you want:
npx --yes palatekit@latest install click-or-hover-text-swapFirst time: connect the CLI with
npx --yes palatekit@latest loginThe agent adds to your page a React (Tailwind) component that swaps one text for another on hover or click. You provide both texts; you get an interactive label.
Updated November 2, 2026
You say
"Switch my button from "Copy" to "Copied" on click."

Component published by harimanok_ under the MIT license, resource page and guide written by PalateKit.
Modified by PalateKit
Version modifiée de « swap-text » (harimanok_, MIT) : traduction française et fiche par PalateKit.
–
No ratings yet
Loading reviews…
React, Tailwind CSS and clsx, tailwind-merge.
Yes, in any React project with Tailwind CSS; just drop the "use client" directive if your tooling does not support it.