Ripple Button

An animated button with ripple useful for user engagement.

runed

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/ripple-button.json

Usage

<script lang="ts">	import { RippleButton } from "#lib/components/magic/ripple-button/index.js";</script>
<RippleButton>Click me</RippleButton>

Examples

Tinted Buttons

Emerald and orange buttons with faint translucent fills and light text in dark mode.

Button Sizes

Compact, default, and large buttons using padding and font-size utilities.

Props

Ripple Button

A component for Ripple Button.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
rippleColorstring"#ffffff"Color of the ripple effect
durationstring"600ms"Duration of the ripple effect
childrenSnippetrequiredThe content of the button