confettiAction

An action to show confetti just on the click on the element.

Demo

Usage

<script>
import { confettiAction } from "svelte-legos";
</script>

<button
  use:confettiAction
>
  Confetti
</button>

<button
  use:confettiAction={{ type: 'school-pride' }}
>
  School Pride
</button>