@konfetti-js/vue

Vue wrapper for konfetti.js
376 2
Install
npm install @konfetti-js/vue
Latest Version:0.4.0
Vue:3
License:MIT
Last Updated:Oct 13, 2026
Links: GitHub  ·  npm
Maintainer: andreabettich

@konfetti-js/vue

Vue composable and directive for konfetti.js. Installs @konfetti-js/core for you.

npm install @konfetti-js/vue
<script setup>
import { useKonfetti, vKonfetti } from '@konfetti-js/vue';

const { fire } = useKonfetti();
</script>

<template>
  <button @click="fire({ particleCount: 100 })">Celebrate!</button>

  <!-- Fires from the element on click; reacts to changes in the bound options -->
  <button v-konfetti="{ preset: 'fireworks' }">Fireworks!</button>
</template>

The directive also accepts trigger (default 'click') and every core option. See the full documentation.

MIT licensed.

Related Packages

@morev/vue-transitions

Shareable Vue transitions library

412,603 222
animated-number-vue

A vue component with number animation

158,718 211
vue-starport

Shared Vue component across routes with animations

57,522 1,949
vue-animated-list

A Vue.js plugin for easily animating `v-for` rendered lists.

4,659 458

Version History

Version Released Vue License
0.4.0 >=3.0.0 MIT
0.3.0 >=3.0.0 MIT