@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
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.4.0 | >=3.0.0 | MIT | |
| 0.3.0 | >=3.0.0 | MIT |