Package Exports
- vue-use-kit
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-use-kit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-use-kit
🌳 Vue kit of useful Vue Composition API functions.
Please note that Vue 3.0 has not been released yet, therefore the installation and setup of @vue/composition-api is required for this library to work.
Install
npm install @vue/composition-api vue-use-kitUsage
Please check the documentation to learn how to use this kit of Vue Composition API functions.
APIs
- Sensors
useHover— tracks mouse hover state of a given element.useMedia— tracks state of a CSS media query.useMouse— tracks the mouse's position.useMouseElement— tracks the mouse's position relative to given element.
- Animations
useTimeout— returnsisReadyprop astruewhen timer is completed.useTimeoutFn— calls function when timer is completed.
- Utils
getQuery— get a CSS media query string.