Shimmer Button

A button with a shimmering light which travels around the perimeter.

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/shimmer-button.json

Usage

<script lang="ts">	import { ShimmerButton } from "#lib/components/magic/shimmer-button/index.js";</script>
<ShimmerButton>Get started</ShimmerButton>

Props

Shimmer Button

A component for Shimmer Button.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
shimmerColorstring"#ffffff"Color of the shimmer effect
shimmerSizestring"0.05em"Size of the shimmer effect
shimmerDurationstring"3s"Duration of the shimmer animation
borderRadiusstring"100px"Border radius of the button
backgroundstring"rgba(0, 0, 0, 1)"Background color of the button