1
3
Block

Ripple Button

PreviousNext

An animated button with ripple useful for user engagement.

import { RippleButton } from "@/components/ui/ripple-button"

export function RippleButtonDemo() {
  return <RippleButton rippleColor="#ADD8E6">Tap me</RippleButton>
}

Installation

pnpm dlx shadcn@latest add https://ebonui.com/r/ripple-button.json

Usage

import { RippleButton } from "@/components/ui/ripple-button"
<RippleButton>Ripple Button</RippleButton>

Props

PropTypeDefaultDescription
childrenReact.ReactNode-The content of the button.
classNamestring-Additional class names for the button.
rippleColorstring-The rbg numbers only for the color of the rippling waves.
durationstring-The time span of one ripple.

Credits