Docs
Shimmer Button
Shimmer Button
A button component with a subtle animated shimmer effect.
Installation
Install the following dependencies:
npm install clsx tailwind-merge
Add the utils.ts file to the @/lib folder
Create a shimmer-button.tsx file and copy the below code.
Update the import paths to match your project setup.
Usage
import { ShimmerButton } from "@/components/breezeblocks/shimmer-button";
<ShimmerButton href="/some-link" className="text-4xl font-bold text-black">
<div>Some content</div>
</ShimmerButton>
Props
Prop | Type | Description | Default |
---|---|---|---|
children | React.ReactNode | Content of the button | - |
className | string | Additional custom classes | - |
href | string | Destination URL for the link | - |
...props | HTMLAnchorElement | Any extra props passed to the underlying next/link | - |