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.jsonOr, with the namespace configured: @balick/shimmer-button
Usage#
import { ShimmerButton } from "@/components/ui/shimmer-button"
export function Cta() {
return <ShimmerButton>Get started</ShimmerButton>
}Props#
| Prop | Type | Default | Description |
|---|---|---|---|
shimmerColorColor of the light travelling around the border. | string | "#ffffff" | Color of the light travelling around the border. |
shimmerDurationDuration of one full turn, as a CSS time. | string | "3s" | Duration of one full turn, as a CSS time. |
backgroundBackground of the button. | string | "#0a0a0a" | Background of the button. |