Getting Started
Components
Device Mocks
Special Effects
Animations
Text Animations
Buttons
import { RippleButton } from "@/registry/magicui/ripple-button";
export function RippleButtonDemo() {
return <RippleButton rippleColor="#ADD8E6">Click me</RippleButton>;
}
Installation
pnpm dlx shadcn@latest add @magicui/ripple-button
Usage
import { RippleButton } from "@/components/magicui/ripple-button";
<RippleButton>Ripple Button</RippleButton>
Props
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The content of the button. |
className | string | - | Additional class names for the button. |
rippleColor | string | - | The rbg numbers only for the color of the rippling waves. |
duration | string | - | The time span of one ripple. |
Credits
- Credit to @Sidd5arth
Limited Time Offer
Ship Faster with Magic UI ProMagic UI Pro
Stop building from scratch.
Get 8 production-ready templates and 50+ premium components that your users will love.
✓
Next.js 15 + TypeScript ready✓
Copy, paste, customize in minutes✓
Save 100+ hours of development