ComponentsRipple Button

Ripple Button

A highly customizable button featuring a concentric waveform click animation and standard React pointer interactions.

Installation

$ nnpx @nehal712521/inprogress add ripple-button

Preview

Click button to see ripple effect (Clicks: 0)

Usage

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

export default function Page() {
    return (
        <RippleButton 
            buttonColor="#18181b" 
            textColor="#ffffff" 
            rippleColor="rgba(255, 255, 255, 0.3)"
        >
            Click Me
        </RippleButton>
    );
}

Props

PropTypeDefaultDescription
buttonColorstring"#18181b"Controls the background color.
textColorstring"#ffffff"Controls the text color.
rippleColorstring"rgba(255, 255, 255, 0.3)"Controls the concentric rings color.
...propsButtonHTMLAttributes-Accepts standard HTML button props like onClick.