Ripple Button
An animated button with ripple useful for user engagement
import { RippleButton } from '@/registry/magicui/ripple-button'
export function RippleButtonDemo() { return <RippleButton rippleColor="#ADD8E6">Click me</RippleButton>}Installation
Section titled “Installation”pnpm dlx shadcn@latest add @magicui-solid/ripple-buttonbunx shadcn@latest add @magicui-solid/ripple-buttonyarn dlx shadcn@latest add @magicui-solid/ripple-buttonnpx shadcn@latest add @magicui-solid/ripple-buttonImport
Section titled “Import”import { RippleButton } from '@/components/magicui/ripple-button'<RippleButton>Ripple Button</RippleButton>| Prop | Type | Default | Description |
|---|---|---|---|
children |
JSX.Element |
- |
The content of the button. |
class |
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
Section titled “Credits”- Credit to @Sidd5arth
Original:
magicui.design/docs/components/ripple-button