Buttons Fancy Stable

RippleButton

Button that spawns an expanding, fading ripple circle centered on the click point, with configurable color and duration

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"#ADD8E6"Color of the ripple effect
duration number600Animation duration in milliseconds

Slots

SlotDescription
childrenButton content