Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Scramble text button

A terminal-green button whose label scrambles into random characters on hover or focus and resolves back left to right.

Category
Buttons
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/scramble-text-button.json

2. Use it

Every prop is optional
app/page.tsx
import ScrambleTextButton from "@/components/scramble-text-button";

export default function Page() {
  return <ScrambleTextButton />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A 56px near-black button with a dark green border, monospace 15px green (#4ade80) text, a > prompt and a blinking block cursor.
  2. On hover or focus each character becomes a random glyph and settles back to the real letter from left to right over about half a second.
  3. Hover lightens the border and background.

How it behaves

  • The accessible name is always the real label, never the scrambled text.
  • Scrambling restarts cleanly if triggered again mid-way.
  • No scramble and no blinking cursor under reduced motion.
  • Disabled is grey and doesn't scramble.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component