mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-16 14:18:29 +00:00
* Ignore linting for examples in docs * Formatting JSX single attribute per line * Separte `format` and `lint:format` in package.json * Bump prettier version * Run format
21 lines
331 B
TypeScript
21 lines
331 B
TypeScript
import { ref } from 'vue';
|
|
|
|
export default function useConfetti() {
|
|
const animate = ref(false);
|
|
const confettiText = ref('confetti!');
|
|
|
|
function confetti() {
|
|
animate.value = true;
|
|
|
|
setTimeout(function () {
|
|
animate.value = false;
|
|
}, 1000);
|
|
}
|
|
|
|
return {
|
|
animate,
|
|
confetti,
|
|
confettiText,
|
|
};
|
|
}
|