Skip to content
Magic UI SolidMagicUI Solid

Ripple Button

An animated button with ripple useful for user engagement

@/demos/RippleButtonDemo.tsx
import { RippleButton } from '@/registry/magicui/ripple-button'
export function RippleButtonDemo() {
return <RippleButton rippleColor="#ADD8E6">Click me</RippleButton>
}
Terminal window
pnpm dlx shadcn@latest add @magicui-solid/ripple-button
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.

Original:

magicui.design/docs/components/ripple-button