Skip to content

gshohat/vue-hotkeys-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vue Hotkeys Hook

NPM License

Lightweight Vue hook for using keyboard shortcuts in components in a declarative way < 5k 😎

hotkeys-hook

Usage

npm i vue-hotkeys-hook

<script setup>
import {useHotkeys} from 'vue-hotkeys-hook';
import {ref} from 'vue';

const counter = ref(0);

useHotkeys('shift+g', () => {
  counter.value++;
});
</script>


<template>
 <div>
    counter: {{counter}}
  </div>
</template

Contact

Feel free to ping me 💫
connect@giladshohat.com

giladshohat.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published