Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Shimmer Button

Pro

A solid button with a highlight that sweeps across on a loop.

Installation

pnpm dlx shadcn@latest add @viewport/shimmer-button

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
shimmerColorstring

Color of the sweeping highlight. Defaults to a tint of the label color so it shows in both themes.

"color-mix(in oklab, var(--primary-foreground) 38%, transparent)"

Accessibility

  • A native button with a visible focus ring.
  • Shimmer is aria-hidden and stops under reduced motion.
  • Supports disabled.