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

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

Slots

SlotDescription
childrenButton content