Shimmer Button

A button with a beam of light travelling around its border.

Installation#

pnpm dlx shadcn@latest add https://ui.balick.me/r/shimmer-button.json

Or, with the namespace configured: @balick/shimmer-button

Usage#

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

export function Cta() {
  return <ShimmerButton>Get started</ShimmerButton>
}

Props#

PropTypeDefault
shimmerColor

Color of the light travelling around the border.

string"#ffffff"
shimmerDuration

Duration of one full turn, as a CSS time.

string"3s"
background

Background of the button.

string"#0a0a0a"