Back to Components
Buttons
Shimmer Button
A button with an animated shimmer/shine effect on hover. Uses pure CSS animation for optimal performance.
Dependencies
- @radix-ui/react-slot
- class-variance-authority
- clsx
- tailwind-merge
Files
- components/ui/shimmer-button.tsx
Installation
Using shadcn CLI
npx shadcn add shimmer-button --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install @radix-ui/react-slot class-variance-authority clsx tailwind-merge