Shimmer Button

Motion

A React call to action with a slow band of light sweeping across it, a lit top edge and a press state. Ink or accent tone, renders as a button or a link.

src/registry/premium/shimmer-button.tsx/r/shimmer-button.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/shimmer-button.json

Usage#

tsx
import { ShimmerButton } from "@/components/ui/shimmer-button"

export function Example() {
  return <ShimmerButton />
}

API reference#

ShimmerButton props
PropTypeDefault
durationnumber2.6
tone"ink" | "accent""ink"
size"default" | "lg""lg"
renderReact.ReactElement<Record<string, unknown>>-

Also accepts every prop of <button>, passed through to the root element.

Dependencies#

npm

lucide-reactmotion

Built from

No other MiniDev files
All Animated React components