vue-use-collection

Useful collection of Vue composition API utilities

Usage no npm install needed!

<script type="module">
  import vueUseCollection from 'https://cdn.skypack.dev/vue-use-collection';
</script>

README

vue-use-collection

NPM Version NPM Downloads Build Status GitHub license Demo

🌳 Collection 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-collection

Usage

Please check the documentation to learn how to use this collection of Vue Composition API functions.

APIs

  • Sensors
    • useMedia — tracks state of a CSS media query. Demo
    • useMouse — tracks the mouse's position. Demo
  • Utils
    • getQuery — get a CSS media query string. Demo

Inspiration

Made with