Shimmer Button
ProA 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
| Prop | Type | Default |
|---|---|---|
| shimmerColor | stringColor 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.