Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Collection of essential Vue Composition Utilities for Vue 3
License
vueuse/vueuse
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation


Collection of essential Vue Composition Utilities
- 🎪Interactive docs & demos
- ⚡Fully tree shakeable: Only take what you want,bundle size
- 🦾Type Strong: Written inTypeScript, withTS Docs
- 🔋SSR Friendly
- 🌎No bundler required: Usable via CDN
- 🔩Flexible: Configurable event filters and targets
- 🔌OptionalAdd-ons: Router, Firebase, RxJS, etc.
import{useLocalStorage,useMouse,usePreferredDark}from'@vueuse/core'const{ x, y}=useMouse()// if user prefers dark themeconstisDark=usePreferredDark()// persist state in localStorageconststore=useLocalStorage('my-storage',{name:'Apple',color:'red',},)
Refer tofunctions list ordocumentations for more details.
From v14.0, VueUse requires Vue v3.5+From v13.0, VueUse requires Vue v3.3+From v12.0, VueUse no longer supports Vue 2. Please use v11.x for Vue 2 support.
npm i @vueuse/core
<script src="https://unpkg.com/@vueuse/shared"></script><script src="https://unpkg.com/@vueuse/core"></script>
It will be exposed to global aswindow.VueUse
See theContributing Guide
This project is heavily inspired by the following awesome projects.
And thanks toall the contributors on GitHub!
MIT License © 2019-PRESENTAnthony Fu
About
Collection of essential Vue Composition Utilities for Vue 3
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.