Ripple Button Component

An interactive button with a ripple effect for modern UIs.

Features

  • Pointer-aware feedback — Mouse hover and touch/pen press start the effect at the pointer location.
  • Customizable motion — Adjust the ripple scale, duration, and styling.
  • Reduced-motion safe — Keeps the interaction state without animated expansion.
  • Native button behavior — Forwards button props, including disabled and event handlers.

Playground

Tweak the props live and hover the button to see the ripple react.

Controls
Controls

Installation

Usage

Props

PropertyTypeDefaultDescription
childrenReactNoderequiredThe content to be displayed inside the button.
scaleAmountnumber25The scale amount for the ripple effect.
classNamestringAdditional CSS classes for the button.
durationnumber0.5Duration of the ripple animation in seconds.
rippleStylestringAdditional CSS classes for the ripple effect.