Skip to content
Buttons Fancy Stable

RippleButton

.md

Button that answers each click with a ripple of light from the click point, a soft glow and two fine rings spreading out like a wave; on hover a glow follows the pointer with a faint ring pulsing from it

Available for Svelte 5, React, and Vue 3.

Preview

Installation

pnpm add fancy-ui-svelte
import { RippleButton } from "fancy-ui-svelte";

Usage

svelte
<script lang="ts">
  import { RippleButton } from 'fancy-ui-svelte';
</script>

<RippleButton />

Examples

Basic Usage

Custom Ripple Colors

Customize the ripple color.

Animation Duration

Control the ripple speed.

Custom Styling

Override styles with the class prop.

Multiple Ripples

Click rapidly to see multiple ripples.

Props

PropTypeDefaultDescription
rippleColor string"#60a5fa"Colour of the ripple: its glow, its rings and the border tint
duration number900Animation duration in milliseconds
sound booleanfalsePlays the press cue on activation, once the user has enabled sound
onclick (event: MouseEvent) => void-Click handler, called after the press cue when sound is on
onpointermove (event: PointerEvent) => void-Pointer-move handler, called after the hover highlight is updated

Slots

SlotDescription
children Button content