Skip to main content

Installation

    Usage

    showLineNumbers
    import { RippleButton } from "@/components/ui/ripple-button"
    
    showLineNumbers
    <RippleButton>Click Me</RippleButton>
    

    Props

    PropTypeDefaultDescription
    childrenReact.ReactNode-The content of the button.
    classNamestring-Additional class names for the button.
    rippleColorstring#ffffffThe color of the ripple effect.
    durationstring600msThe duration of the ripple animation.
    onClick(event: MouseEvent<HTMLButtonElement>) => void-Click event handler.
    …restReact.ButtonHTMLAttributes<HTMLButtonElement>-All standard button HTML attributes are supported.

    Examples

    Custom Ripple Color

    showLineNumbers
    <RippleButton rippleColor="#ff0000">Red Ripple</RippleButton>
    

    Custom Duration

    showLineNumbers
    <RippleButton duration="1000ms">Slow Ripple</RippleButton>
    

    Build docs developers (and LLMs) love