Effects Fancy Stable

Confetti

.md

Confetti celebration effect powered by canvas-confetti with button trigger support

Preview

Installation

pnpm add fancy-ui-svelte
import { Confetti } from 'fancy-ui-svelte'

Usage

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

<Confetti />

Examples

Basic Usage

Custom Options

Customize confetti behavior.

Props

PropTypeDefaultDescription
options ConfettiOptions{}canvas-confetti options passed to each fire() call
globalOptions ConfettiGlobalOptions{}Global canvas-confetti initialization options
manualStart booleanfalsePrevent auto-firing on mount; call fire() manually
ConfettiButton.sound booleanfalsePlays the press cue when the confetti button fires a burst, once the user has enabled sound

Slots

SlotDescription
childrenConfettiButton or other trigger elements