Files
Han Yeong-woo eb035fe370 Improve formatting (#1814)
* 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
2024-02-01 14:38:21 +01:00

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,
};
}