vue-konami
The indispensable directive for VueJS
Documentation
Full documentation website can be found here.
If targeting Vue2, please read Legacy docs
Installation
npm install vue-konami --save
Usage
Simple
<div v-konami="easterEgg"></div>
<script setup>
const easterEgg = () => {
alert('easterEgg');
};
</script>
Advanced
<div v-konami="easterEgg"></div>
<script setup>
const easterEgg = {
timeout: 500,
chain: ['A', 'Z', 'E', 'R', 'T', 'Y'],
callback: () => {
alert('easterEgg');
}
};
</script>
Contributors
cadgerfeast |
Aterbonus |
License
MIT