Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Shimmer button

A call-to-action button with a moving highlight, a pressed state and real loading then success feedback.

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/shimmer-button.json

2. Use it

Every prop is optional
app/page.tsx
import ShimmerButton from "@/components/shimmer-button";

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

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A 56px-tall rounded (16px) indigo button, minimum 13rem wide, with a soft top highlight and a coloured drop shadow, centred on a pale grey panel.
  2. A diagonal white highlight sweeps across it every few seconds while idle.
  3. On click it shows a spinner and the loading label for about 1.3 seconds, then turns green with a check icon and the success label for 1.8 seconds, then returns to idle. Clicks are ignored while it is busy.
  4. Disabled is a flat grey button with no shadow and a not-allowed cursor.

How it behaves

  • Clicking runs idle, loading, success, idle; the label changes each time and is announced (role=status).
  • The highlight sweep is hidden when reduced motion is on.
  • Tabbing to it shows a clear focus ring; Enter and Space activate it.
  • In the disabled state it cannot be focused or clicked.

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