Ripple Button

A button that sends rings of water out from wherever you press it.

no dependenciesMIT · free

Installation

npx shadcn@latest add https://ombakui.com/r/ripple-button.json

Usage

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

<RippleButton onClick={save}>Click me</RippleButton>
<RippleButton className="border bg-transparent text-foreground" rippleColor="rgba(0,0,0,.15)">
  Outline
</RippleButton>

Props

PropTypeDefaultDescription
rippleColorstring"rgba(255, 255, 255, 0.45)"Ripple color. Any CSS color.
durationnumber750Milliseconds for one ripple.
childrenReactNode–Button content.
classNamestring–