Back to Components
Buttons
Ripple Button
A button with an interactive ripple effect that responds to clicks and taps.
Dependencies
- @radix-ui/react-slot
- class-variance-authority
- clsx
- tailwind-merge
- framer-motion
Files
- components/ui/ripple-button.tsx
Installation
Using shadcn CLI
npx shadcn add ripple-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 framer-motion